Prototype Pollution (and DOM clobbering)
Miscellaneous · Severe priority
An attacker poisons the shared prototype so every object inherits their properties.
How Passkey Accounts™ addresses this
Passkey Accounts™ takes no authority from the prototype or the page
Injected data never becomes trusted configuration
Example scenario
A merge accepts keys like __proto__ so later objects inherit attacker-controlled properties, or crafted id and name markup creates a global the script mistakes for configuration.
Without it
- Attacker: Sends a payload targeting the prototype
- App: Merges it into a shared object
- App: The prototype now carries attacker properties
- Attacker: Sets a default via the prototype
- App: Every user now inherits isAdmin
- Attacker: Acts as admin without credentials
- Attacker: Pollutes a config the server trusts
- App: Feeds the value into a command
- Attacker: Runs code on the host
- Attacker: Injects a
formwith id appConfig - Browser: Creates window.appConfig from the markup
- App: The security check trusts the markup
- You: ❌ Attacker controls the application.
With Passkey Accounts™
- Attacker: Sends a payload targeting the prototype
- PA™: Lookups skip the prototype chain
- Attacker: Sets a default via the prototype
- PA™: Inherited keys are never read
- Attacker: Pollutes a config the server trusts
- PA™: A polluted key answers nothing
- Attacker: Injects a
formwith id appConfig - PA™: Globals grant no authority
- PA™: Clobbering only breaks the widget
- You: ✅ Untrusted input changes nothing.
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.