Remix / React Router (TypeScript) · CWE-942
Remix / React Router: Permissive CORS + Credentials (Source & Boundary Audit)
Trace entrypoints to sinks and map coverage-ledger units. Prevent reflected Origin headers paired with Access-Control-Allow-Credentials: true. Tailored for Remix / React Router: Authenticate cleanly inside every loader and action independently of parent layouts.
Coverage ledger tracking key
surface:remix-react-router::boundary:cors-credential-leak::angle:audit
ZAP 40040 / 10098 cross-domain misconfig audit
Risk boundary
// Unverified Remix / React Router path (CWE-942 · Source & Boundary Audit)
// Handler accepts input without validating requireUserId(request).Hardened guard
// Hardened Remix / React Router (CWE-942 · Source & Boundary Audit)
// 1. Authenticate cleanly inside every loader and action independently of parent layouts
// 2. Validate origins against an exact static allowlist and never combine wildcard rules with cookies.Verification steps
- 01Seed coverage-ledger.json for every Remix / React Router handler touching Permissive CORS + Credentials.
- 02Trace request parameters through requireUserId(request) validation down to the sink.
- 03Verify with paired positive/negative evidence via zap-baseline-passive.