Every threat

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

  1. Attacker: Sends a payload targeting the prototype
  2. App: Merges it into a shared object
  3. App: The prototype now carries attacker properties
  4. Attacker: Sets a default via the prototype
  5. App: Every user now inherits isAdmin
  6. Attacker: Acts as admin without credentials
  7. Attacker: Pollutes a config the server trusts
  8. App: Feeds the value into a command
  9. Attacker: Runs code on the host
  10. Attacker: Injects a form with id appConfig
  11. Browser: Creates window.appConfig from the markup
  12. App: The security check trusts the markup
  13. You: ❌ Attacker controls the application.

With Passkey Accounts™

  1. Attacker: Sends a payload targeting the prototype
  2. PA™: Lookups skip the prototype chain
  3. Attacker: Sets a default via the prototype
  4. PA™: Inherited keys are never read
  5. Attacker: Pollutes a config the server trusts
  6. PA™: A polluted key answers nothing
  7. Attacker: Injects a form with id appConfig
  8. PA™: Globals grant no authority
  9. PA™: Clobbering only breaks the widget
  10. You: ✅ Untrusted input changes nothing.

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