nuclei-templates/http/misconfiguration/wildcard-postmessage.yaml

31 lines
1.1 KiB
YAML

id: wildcard-postmessage
info:
name: postMessage - Cross-Site Scripting
author: pdteam
severity: unknown
description: postMessage contains a cross-site scripting vulnerability. An attacker can execute arbitrary script and therefore steal cookie-based authentication credentials and launch other attacks.
reference:
- https://jlajara.gitlab.io/web/2020/06/12/Dom_XSS_PostMessage.html
- https://payatu.com/blog/anubhav.singh/postmessage-vulnerabilities
- https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
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
tags: xss,postmessage,misconfig
http:
- method: GET
path:
- '{{BaseURL}}'
matchers:
- type: regex
regex:
- postMessage\([a-zA-Z]+,["']\*["']\)
# digest: 4a0a00473045022100dc9dfa25cdb0c349acce568ba7ff3bfff59f02412050def18dbf376261d2f1d1022030f083bcc57a9f0f841b76463fa571487e0363d7314f3c669c8f41a9a196a204:922c64590222798bb761d5b6d8e72950