web-21-postmessage
Installation
SKILL.md
postMessage — Web Offensive Methodology
Quick Workflow
- Find
window.addEventListener('message', ...)handlers in JS source - Check if origin is validated (event.origin === 'https://target.com')
- If no origin check or wildcard: craft cross-origin iframe that sends malicious messages
- If handler sinks to
innerHTML,eval(),location =, or URL fetch → XSS