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
- Attacker: Plants a script in the trusted origin
- Site: Runs it with first-party privileges
- Attacker: Rides your session to act
- Site: Trusts the session cookie alone
- You: ❌ The injected script acts as the user.
With Passkey Accounts™
- Attacker: Plants a script in the trusted origin
- PA™: Private keys stay outside JavaScript
- Attacker: Rides your session to act
- PA™: Risky acts need a tap
- You: ✅ XSS can't become the authenticator.
Watch it play out in the threat matrix
Developed by Justin Sargent (opens in a new tab) and published through Soup or Cereal, LLC. Privacy policy · Terms.