Every threat

Same-Origin XSS Session Riding

Sessions · Critical priority · step-up *

An attacker's injected script rides the live session to call privileged endpoints.

How Passkey Accounts™ addresses this

Passkey Accounts™ separates private keys from JavaScript *

XSS may ride a session, but it cannot become the authenticator

* Answered by a step-up, asked for either way the host has: its page calls widget.reverify(), or its server posts /api/host/request-reverify and the widget shows a Confirm button. Either way the ceremony runs on this connection and preserves the session -- the same session code before and after, scoped to the passkey it was signed in with. Residual: an induced ceremony still authorizes one action, because the platform prompt cannot name what it approves.

Example scenario

Script reaches the trusted origin by any of several routes: injected into a comment or profile field, a poisoned dependency or build artifact, an installed userscript, a bookmarklet, code pasted into the console, or an extension granted broad access. It then drives allowed actions as the user.

Without it

  1. Attacker: Plants a script in the trusted origin
  2. Site: Runs it with first-party privileges
  3. Attacker: Rides your session to act
  4. Site: Trusts the session cookie alone
  5. You: ❌ The injected script acts as the user.

With Passkey Accounts™

  1. Attacker: Plants a script in the trusted origin
  2. PA™: Private keys stay outside JavaScript
  3. Attacker: Rides your session to act
  4. PA™: Risky acts need a tap
  5. You: ✅ XSS can't become the authenticator.

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