当前位置:网站首页>中间件漏洞复现—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
总结: 思维导图

边栏推荐
- 优先队列PriorityQueue (大根堆/小根堆/TopK问题)
- 编写程序,模拟现实生活中的交通信号灯。
- [modern Chinese history] Chapter 6 test
- 强化学习系列(一):基本原理和概念
- It's never too late to start. The tramp transformation programmer has an annual salary of more than 700000 yuan
- 扑克牌游戏程序——人机对抗
- 透彻理解LRU算法——详解力扣146题及Redis中LRU缓存淘汰
- Read only error handling
- 【数据库 三大范式】一看就懂
- 强化學習基礎記錄
猜你喜欢

(原创)制作一个采用 LCD1602 显示的电子钟,在 LCD 上显示当前的时间。显示格式为“时时:分分:秒秒”。设有 4 个功能键k1~k4,功能如下:(1)k1——进入时间修改。

强化学习基础记录

FAQs and answers to the imitation Niuke technology blog project (II)

【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...

1. First knowledge of C language (1)

仿牛客技术博客项目常见问题及解答(一)

强化学习基础记录

4. Branch statements and loop statements

仿牛客技术博客项目常见问题及解答(三)

Record a penetration of the cat shed from outside to inside. Library operation extraction flag
随机推荐
甲、乙机之间采用方式 1 双向串行通信,具体要求如下: (1)甲机的 k1 按键可通过串行口控制乙机的 LEDI 点亮、LED2 灭,甲机的 k2 按键控制 乙机的 LED1
.Xmind文件如何上传金山文档共享在线编辑?
7-3 构造散列表(PTA程序设计)
Why use redis
[three paradigms of database] you can understand it at a glance
撲克牌遊戲程序——人機對抗
7-7 7003 组合锁(PTA程序设计)
Experiment 7 use of common classes
HackMyvm靶机系列(6)-videoclub
7-11 机工士姆斯塔迪奥(PTA程序设计)
Reinforcement learning series (I): basic principles and concepts
[modern Chinese history] Chapter 6 test
MySQL锁总结(全面简洁 + 图文详解)
The difference between overloading and rewriting
Experiment 9 input and output stream (excerpt)
C language Getting Started Guide
2022泰迪杯数据挖掘挑战赛C题思路及赛后总结
7-6 矩阵的局部极小值(PTA程序设计)
It's never too late to start. The tramp transformation programmer has an annual salary of more than 700000 yuan
Have you encountered ABA problems? Let's talk about the following in detail, how to avoid ABA problems