.. / CVE-2012-0394

Exploit for Apache Struts <2.3.1.1 - Remote Code Execution (CVE-2012-0394)

Description:

Apache Struts before 2.3.1.1 is susceptible to remote code execution. When developer mode is used in the DebuggingInterceptor component, a remote attacker can execute arbitrary OGNL commands via unspecified vectors, which can allow for execution of malware, obtaining sensitive information, modifying data, and/or gaining full control over a compromised system without entering necessary credentials.. NOTE: the vendor characterizes this behavior as not “a security vulnerability itself.”

Nuclei Template

View the template here CVE-2012-0394.yaml

Validate with Nuclei

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

References:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0394
https://www.exploit-db.com/exploits/31434
http://www.exploit-db.com/exploits/18329
https://nvd.nist.gov/vuln/detail/CVE-2012-0394
https://www.pwntester.com/blog/2014/01/21/struts-2-devmode-an-ognl-backdoor/