2021-10-23 18:04:49 +00:00
id : wildcard-postmessage
info :
2022-09-16 19:50:10 +00:00
name : postMessage - Cross-Site Scripting
2021-10-23 18:04:49 +00:00
author : pdteam
2023-11-20 09:32:48 +00:00
severity : unknown
2022-09-16 19:50:10 +00:00
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.
2022-04-22 10:38:41 +00:00
reference :
- https://jlajara.gitlab.io/web/2020/06/12/Dom_XSS_PostMessage.html
2022-09-16 19:50:10 +00:00
- 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
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-10-14 11:27:55 +00:00
tags : xss,postmessage,misconfig
2021-10-23 18:04:49 +00:00
2023-04-27 04:28:59 +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]+,["']\*["']\)
2023-11-21 07:14:20 +00:00
# digest: 4a0a00473045022100dc9dfa25cdb0c349acce568ba7ff3bfff59f02412050def18dbf376261d2f1d1022030f083bcc57a9f0f841b76463fa571487e0363d7314f3c669c8f41a9a196a204:922c64590222798bb761d5b6d8e72950