POC详情: f3ad1071aa03046bc44786c06f995e8fdc071189

来源
关联漏洞
标题: Apache Struts 2 输入验证错误漏洞 (CVE-2017-5638)
描述:Apache Struts是美国阿帕奇(Apache)软件基金会的一个开源项目,是一套用于创建企业级Java Web应用的开源MVC框架,主要提供两个版本框架产品,Struts 1和Struts 2。 Apache Struts 2 2.3.32之前的2 2.3.x版本和2.5.10.1之前的2.5.x版本中的Jakarta Multipart解析器存在安全漏洞,该漏洞源于程序没有正确处理文件上传。远程攻击者可借助带有#cmd=字符串的特制Content-Type HTTP头利用该漏洞执行任意命令。
描述
cve-2017-5638 Vulnerable site sample
介绍
# cve-2017-5638
cve-2017-5638 Vulnerable site sample

This project aims to demonstrate the CVE-2017-5638 exploitation for educational purpose.
For more informations, see [https://cwiki.apache.org/confluence/display/WW/S2-045](https://cwiki.apache.org/confluence/display/WW/S2-045)

## Legal Disclaimer

This project is made for educational and ethical testing purposes only. Attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

## Getting started

1. Start the docker container :

`docker run -d -p 8080:8080 jrrdev/cve-2017-5638:latest`

2. Download the exploit script on the attacker machine [here](https://github.com/jrrdev/cve-2017-5638/blob/master/exploit/exploit.py)

3. Run the python exploit script from the attacker machine :

`python exploit.py http://<DOCKER_HOST>:8080/hello "ls -l"`
文件快照

[4.0K] /data/pocs/f3ad1071aa03046bc44786c06f995e8fdc071189 ├── [4.0K] docker │   └── [ 78] entry-point.sh ├── [ 640] Dockerfile ├── [4.0K] exploit │   └── [2.0K] exploit.py ├── [1.1K] LICENSE ├── [2.1K] pom.xml ├── [ 997] README.md └── [4.0K] src └── [4.0K] main ├── [4.0K] java │   └── [4.0K] com │   └── [4.0K] github │   └── [4.0K] jrrdev │   ├── [1.8K] AppConfiguration.java │   ├── [1.6K] Application.java │   └── [1.5K] HelloWorldAction.java └── [4.0K] resources ├── [ 411] log4j2.xml ├── [4.0K] META-INF │   └── [4.0K] resources │   ├── [4.0K] pages │   │   └── [ 144] helloworld.jsp │   └── [4.0K] WEB-INF │   └── [ 475] web.xml └── [ 555] struts.xml 13 directories, 13 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。