Testing Postmessage And Web Message Trust

Test cross-document messaging trust, where a browser message handler acts on data whose origin or content an attacker can influence by opening or framing the window, or where code sends sensitive data to another window with a wildcard target. Use when reviewing client code that registers a message event listener and routes the data into the DOM, an evaluation, navigation, or storage, or that posts secrets across windows. Covers a missing, wildcard, or substring origin check, a missing source-window check, a wildcard target that leaks data, and a deserialized message driving a sink. The message event is the source, the handler sink or the outbound post is the sink, and acting without an exact origin and source check, or leaking to a wildcard target, is the bug.

UnboundCompute 59028b5 9.7 KB Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/testing-postmessage-and-web-message-trust commit 59028b57aa

Frequently asked questions

npx skillmds@latest add unboundcompute/testing-postmessage-and-web-message-trust