Remix / React Router (TypeScript) · CWE-1321

Remix / React Router: Prototype & Object Graph Pollution (Adversarial PoC Verification)

Prove boundary crossing with paired positive/negative controls. Stop __proto__ or constructor keys inside merge helpers from mutating runtime prototypes. Tailored for Remix / React Router: Authenticate cleanly inside every loader and action independently of parent layouts.

Primary AegisSec skill
client-side-mobile-ipc-audit ->
Companion: owasp-web-audit
Coverage ledger tracking key
surface:remix-react-router::boundary:prototype-pollution::angle:verification
Recursive JSON __proto__ payload verification
Risk boundary
// Unverified Remix / React Router path (CWE-1321 · Adversarial PoC Verification)
// Handler accepts input without validating requireUserId(request).
Hardened guard
// Hardened Remix / React Router (CWE-1321 · Adversarial PoC Verification)
// 1. Authenticate cleanly inside every loader and action independently of parent layouts
// 2. Use Object.create(null) lookups, Map structures, or explicit schema allowlists during merges.

Verification steps

  1. 01Seed coverage-ledger.json for every Remix / React Router handler touching Prototype & Object Graph Pollution.
  2. 02Trace request parameters through requireUserId(request) validation down to the sink.
  3. 03Verify with paired positive/negative evidence via owasp-web-audit.