关联漏洞
标题:
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有效载荷时没有进行任
描述
Better Exploit Code For CVE 2017 9805 apache struts
介绍
# CVE-2017-9805.py
1. Better Exploit Code For CVE 2017 9805 apache struts
2. Should be mostly error proof
# Why Recode?
Found that most of the exploit code online simply used string concatenation to insert user supplied commands and insert into an XML string. This isnt very reliable as XML requires certain special characters use encoding. As such, it will trip an error cause those scripts dont account for this. Additionally, properly encoded xml may cause errors in getting proper command execution. This script solves those issues.
# What's different?
1. I added in proper argument parsing
2. Regex checking of proper argument formatting.
3. xml as an object instead of just a string
4. Encoding of commands to prevent errors with special characters in user supplied payload.
文件快照
[4.0K] /data/pocs/6e8ff937547cdbf5d4f0e569361cb9145cb3018c
├── [5.5K] cve-2017-9805.py
├── [1.0K] LICENSE
└── [ 783] README.md
0 directories, 3 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。