Every threat

Frame, Channel and Worker Forgery

Widget / Host · Severe priority

An attacker forges frame messages, or escapes a sandbox, to reach the parent page.

How Passkey Accounts™ addresses this

Passkey Accounts™ listens for no window messages and trusts no relay

No frame, broadcast or worker can grant a session

Example scenario

A loose match trusts trusted.com.evil.example, a forged frame message fakes a result, a shared page bus carries a command meant for another widget, a rogue tab claims leadership and broadcasts session updates, or a service worker replays a cached authenticated response.

Without it

  1. Attacker: Registers look-alike trusted.com.evil.example
  2. Site: Checks senders with a prefix match
  3. Attacker: Posts a forged message from it
  4. Site: Prefix matches, so it accepts
  5. Attacker: Runs a privileged widget action
  6. Attacker: Posts a message from an unrelated origin
  7. Site: Reads the payload without checking the sender
  8. Attacker: Injects a command the widget obeys
  9. Attacker: Broadcasts a forged postMessage to every widget
  10. Widget: Every widget reads the shared bus
  11. Attacker: The profile widget overwrites your email
  12. Attacker: Races a stale tab to claim leader
  13. Site: Sibling tabs apply its broadcasts unverified
  14. Attacker: Drives every tab into the attacker session
  15. Attacker: Registers a worker on the compromised origin
  16. Site: Routes every widget request through it
  17. Attacker: Serves a cached logged-in response
  18. Attacker: Rides the revived session
  19. You: ❌ A forged message passes as a result.

With Passkey Accounts™

  1. Attacker: Registers look-alike trusted.com.evil.example
  2. PA™: Nothing is listening
  3. Attacker: Posts a message from an unrelated origin
  4. PA™: No listener, no bypass
  5. Attacker: Broadcasts a forged postMessage to every widget
  6. PA™: Foreign messages never reach it
  7. PA™: No widget answers it
  8. Attacker: Races a stale tab to claim leader
  9. PA™: A broadcast grants no session
  10. PA™: Only the server moves sessions
  11. Attacker: Registers a worker on the compromised origin
  12. PA™: A worker relays bytes only
  13. PA™: A cached response is stale
  14. You: ✅ No frame, bus, tab or worker to fool.

Developed by Justin Sargent (opens in a new tab) and published through Soup or Cereal, LLC. Privacy policy · Terms.