Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-11776 PoC — Apache Struts 输入验证错误漏洞

Source
Associated Vulnerability
Title:Apache Struts 输入验证错误漏洞 (CVE-2018-11776)
Description:Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time, its upper package have no or wildcard namespace.
Description
CVE-2018-11776(S2-057) EXPLOIT CODE
Readme
# CVE-2018-11776


2018年8月23日,Apache Strust2发布最新安全公告,Apache Struts2 存在远程代码执行的高危漏洞,该漏洞由Semmle Security Research team的安全研究员汇报,漏洞编号为CVE-2018-11776(S2-057)。Struts2在XML配置中如果namespace值未设置且(Action Configuration)中未设置或用通配符namespace时可能会导致远程代码执行。

**影响版本**

Struts 2.3 to 2.3.34

Struts 2.5 to 2.5.16


**修复版本**

Struts 2.3.35

Struts 2.5.17


**使用方法**

python3 s2-057.py {url} eg: python3 s2-057.py http://example.com


**漏洞验证**

使用seebug.org在线检测平台检测出某站存在struts s2-057漏洞

<img alt="default" src="https://raw.githubusercontent.com/jiguang7/CVE-2018-11776/master/seeebug-org-struts2.png">



使用s2-057.py 检测出某站存在struts s2-057漏洞

<img alt="default" src="https://raw.githubusercontent.com/jiguang7/CVE-2018-11776/master/s2-057-struts2.png">

File Snapshot

[4.0K] /data/pocs/62f48e48de63b509e355b64425d702f40532f2fa ├── [ 981] README.md ├── [2.1K] s2-057.py ├── [ 72K] s2-057-struts2.png └── [296K] seeebug-org-struts2.png 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →