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

31 lines
1.0 KiB
YAML
Raw Normal View History

2021-10-23 18:04:49 +00:00
id: wildcard-postmessage
info:
name: postMessage - Cross-Site Scripting
2021-10-23 18:04:49 +00:00
author: pdteam
severity: high
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
2023-10-14 11:27:55 +00:00
tags: xss,postmessage,misconfig
2021-10-23 18:04:49 +00:00
http:
2021-10-23 18:04:49 +00:00
- method: GET
path:
- '{{BaseURL}}'
matchers:
2021-10-26 18:18:28 +00:00
- type: regex
regex:
- postMessage\([a-zA-Z]+,["']\*["']\)
# digest: 4a0a00473045022100e4bd960023160a1f52211d8c2e9c3956e01b9b5582beabee1ce80f242e434e8c0220524ac9c840c40133ebbee86b91995f7df175fdd4ce449f7b4ec0fd653e37b7a6:922c64590222798bb761d5b6d8e72950