Skip to content
Back to skills

Postmessage Abuse

ASecurity

Web-messaging (postMessage) security testing — message handlers that skip origin validation and feed data to dangerous sinks (DOM XSS, navigation, token storage) or that leak sensitive data to attacker origins. Covers both inbound (handler) and outbound (broadcast to *) issues. Tier 1. Payloads: payloads/client-side.md. Use for apps using window.postMessage.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitytestingbackendsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill postmessage-abuse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Postmessage Abuse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Postmessage Abuse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-postmessage-abuse/badge)](https://www.skillsdirectory.com/skills/anandjogawade-postmessage-abuse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: postmessage-abuse
description: "Web-messaging (postMessage) security testing — message handlers that skip origin validation and feed data to dangerous sinks (DOM XSS, navigation, token storage) or that leak sensitive data to attacker origins. Covers both inbound (handler) and outbound (broadcast to *) issues. Tier 1. Payloads: payloads/client-side.md. Use for apps using window.postMessage."
---

# postMessage / Web-Messaging Abuse

Cross-window messaging without origin checks is a classic client-side bug — inbound (handler → sink) and outbound (secrets sent to `*`).

## Trigger phrases
`postmessage, web messaging, message event, origin validation, cross window messaging`

## Method
1. Find `window.addEventListener('message', ...)` handlers (grep JS). Check whether they validate `event.origin`.
2. **Inbound:** missing/weak origin check + a dangerous sink (`innerHTML`, `eval`, navigation, `location`, storage, token save) → send crafted messages from an attacker page → XSS/data theft. Build a PoC page that frames the target and posts the payload.
3. **Outbound leak:** app sends sensitive data via `postMessage(..., '*')` → any framing origin can read it (frame the target and listen).
4. Confirm execution/leak cross-origin.

## Escalation
DOM XSS (→ `dom-xss`), token/PII theft, or action trigger from any origin.

## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.

## Evidence
The handler/broadcast code, the crafted message/listener PoC, and the XSS/leak proof.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.