
CVE-2018-11776(S2-057) EXPLOIT CODE
On August 23, 2018, Apache Struts 2 released its latest security advisory, revealing a high-risk remote code execution vulnerability. Reported by a security researcher from the Semmle Security Research team, this vulnerability is tracked as CVE-2018-11776 (S2-057). If the namespace value is not set in the Struts 2 XML configuration, and the Action Configuration does not set a namespace or uses a wildcard namespace, it may lead to remote code execution.
Affected Versions
Struts 2.3 to 2.3.34
Struts 2.5 to 2.5.16
Fixed Versions
Struts 2.3.35
Struts 2.5.17
Usage
python3 s2-057.py {url} eg: python3 s2-057.py http://example.com
Vulnerability Verification
The seebug.org online detection platform found a site vulnerable to Struts S2-057.
The s2-057.py script detected a site vulnerable to Struts S2-057.
