当前位置:网站首页>中间件漏洞复现—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
总结: 思维导图
边栏推荐
- 关于双亲委派机制和类加载的过程
- 2022 Teddy cup data mining challenge question C idea and post game summary
- 简述xhr -xhr的基本使用
- 7-3 构造散列表(PTA程序设计)
- 重载和重写的区别
- fianl、finally、finalize三者的区别
- Force deduction 152 question multiplier maximum subarray
- Relationship between hashcode() and equals()
- Implementation principle of automatic capacity expansion mechanism of ArrayList
- FAQs and answers to the imitation Niuke technology blog project (I)
猜你喜欢
[during the interview] - how can I explain the mechanism of TCP to achieve reliable transmission
PriorityQueue (large root heap / small root heap /topk problem)
A piece of music composed by buzzer (Chengdu)
Using spacedesk to realize any device in the LAN as a computer expansion screen
HackMyvm靶机系列(6)-videoclub
Canvas foundation 1 - draw a straight line (easy to understand)
Write a program to simulate the traffic lights in real life.
强化学习基础记录
仿牛客技术博客项目常见问题及解答(一)
FAQs and answers to the imitation Niuke technology blog project (III)
随机推荐
[modern Chinese history] Chapter 6 test
Thoroughly understand LRU algorithm - explain 146 questions in detail and eliminate LRU cache in redis
ABA问题遇到过吗,详细说以下,如何避免ABA问题
HackMyvm靶机系列(6)-videoclub
Strengthen basic learning records
[modern Chinese history] Chapter 9 test
[three paradigms of database] you can understand it at a glance
【数据库 三大范式】一看就懂
Miscellaneous talk on May 27
【Numpy和Pytorch的数据处理】
[the Nine Yang Manual] 2016 Fudan University Applied Statistics real problem + analysis
实验五 类和对象
The difference between abstract classes and interfaces
实验六 继承和多态
Write a program to simulate the traffic lights in real life.
[the Nine Yang Manual] 2021 Fudan University Applied Statistics real problem + analysis
[the Nine Yang Manual] 2020 Fudan University Applied Statistics real problem + analysis
1143_ SiCp learning notes_ Tree recursion
一段用蜂鸣器编的音乐(成都)
String ABC = new string ("ABC"), how many objects are created