.. / CVE-2018-11776

Exploit for Apache Struts2 S2-057 - Remote Code Execution (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.

Nuclei Template

View the template here CVE-2018-11776.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2018/CVE-2018-11776.yaml
Copy

References:

https://github.com/jas502n/St2-057
https://cwiki.apache.org/confluence/display/WW/S2-057
http://packetstormsecurity.com/files/172830/Apache-Struts-Remote-Code-Execution.html
https://nvd.nist.gov/vuln/detail/CVE-2018-11776
https://security.netapp.com/advisory/ntap-20180822-0001/