Script Execution in Your Origin
Infrastructure / Transport · Elevated priority
An attacker gets code running with your page privileges, one way or another.
How Passkey Accounts™ addresses this
Passkey Accounts™ keeps no login secret that running script could lift
Script in the origin still cannot become the authenticator
Example scenario
No policy blocks an injected tag, a JSONP endpoint the policy already trusts smuggles code in, a reflected string executes, or an upload is sniffed and run as script.
Without it
- Attacker: Injects a script tag pointing at evil-cdn.com (via XSS, stored input, etc.)
- Site: Serves no CSP, so the source loads
- Browser: Runs the attacker's script
- Attacker: Also injects inline script to read the cookie
- Browser: Runs the inline script in the origin
- Attacker: Steals the session and acts as you
- Attacker: Finds a JSONP endpoint on a trusted origin
- Attacker: Puts attacker code in the callback parameter
- Server: Wraps the payload in the callback
- Attacker: Loads it via a whitelisted script tag
- Browser: Trusts the origin and runs the code
- Attacker: Attacker code runs with the page's privileges
- Attacker: Puts script in a URL parameter
- Site: Reflects the input into the page
- Browser: Ignores the deprecated filter
- Attacker: Runs its script in the origin
- Attacker: Uploads script disguised as a text file
- Site: Serves it with a loose Content-Type
- Browser: Sniffs the bytes as executable
- Attacker: Runs its script in the origin
- You: ❌ Their code runs with your privileges.
With Passkey Accounts™
- Attacker: Injects a script into the page (XSS, stored input, etc.)
- PA™: It lifts nothing reusable
- Attacker: Also injects inline script to read stored auth
- PA™: The keys are non-extractable
- Attacker: Finds a JSONP endpoint on a trusted origin
- PA™: No JSONP endpoint exists
- Attacker: Loads it via a whitelisted script tag
- PA™: That tag loads inert data
- Attacker: Puts script in a URL parameter
- PA™: Output is escaped
- PA™: The reflected string stays inert
- Attacker: Uploads script disguised as a text file
- PA™: Responses carry nosniff
- You: ✅ It runs, and it finds nothing to take.
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.