关联漏洞
标题:
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头利用该漏洞执行任意命令。
描述
Strutsy - Mass exploitation of Apache Struts (CVE-2017-5638) vulnerability
介绍
# Strutsy
Strutsy - Mass exploitation of Apache Struts (CVE-2017-5638) vulnerability. Includes **blind** and **time based code injection** techniques which significantly reduces false negatives. Other features include mass URL imports to scan multiple targets in one go.
## Usage:
### python strutsy.py *urls.txt windows/linux/default ip-address*
*All parameters are required.*
1. urls.txt - file containing the urls that are to be tested.
2. platform - should include either windows/linux/default. Use default if you are not sure if it's a windows or linux enviornment.
3. ip-address - public facing ip-address required to test blind injection. Please note apache should be installed and the apache log files should be readable in-order to read the http request. If you donot wish to test against this feature input an arbitary ip-address.
urls.txt:
1. Search for vulnerable struts application from Google dork:
Google Dork syntax: inurl:"struts" filetype:action
I used pagodo (https://github.com/opsdisk/pagodo)to save the output:
python pagodo.py -g dork.txt -l 200 -s -e 35.0 -j 1.1 >> urls.txt
2. Import URLs from Burp Suite after crawling your target.
3. Include the URL you wish to scan by manually including it in url.txt file.
This module exploits vulnerable Apache Struts (CVE-2017-5638) which fails to validate Content-Type HTTP headers resulting in arbitrary command execution.
The original exploit (https://www.exploit-db.com/exploits/41570/) has been modified to include blind and time based blind command injection for windows and linux platforms.
Please note the tool actively exploits the remote system hence please ensure you have permission to scan the target first before using this tool.
Vulnerable Apache struts versions: 2.3.5 through 2.3.31 and 2.5 through 2.5.10.
Tested on Windows 2008 and linux platforms.
文件快照
[4.0K] /data/pocs/ec15eea819665bf032f030d994d985ee3e762902
├── [1.0K] LICENSE
├── [1.8K] README.md
├── [4.6K] strutsy.py
└── [4.0K] ThreatDragonModels
└── [4.0K] sample Threat model
└── [ 15K] sample Threat model.json
2 directories, 4 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。