React SPA (TypeScript / Browser) · CWE-1333

React SPA: Unbounded Payload & ReDoS (Code Remediation)

Implement fail-closed guards and safe data filters. Prevent exponential regex backtracking, deep JSON nesting, or unpaginated query DoS. Tailored for React SPA: Eliminate raw HTML sinks and validate postMessage origins strictly.

Primary AegisSec skill
native-memory-protocols-dos ->
Companion: business-logic-race-testing
Coverage ledger tracking key
surface:react-spa::boundary:dos-redos-bounds::angle:remediation
Timeout/depth stress check on staging parser endpoint
Risk boundary
// Unverified React SPA path (CWE-1333 · Code Remediation)
// Handler accepts input without validating accessToken.
Hardened guard
// Hardened React SPA (CWE-1333 · Code Remediation)
// 1. Eliminate raw HTML sinks and validate postMessage origins strictly
// 2. Enforce strict body size caps, pagination ceilings, request timeouts, and linear regex engines.

Verification steps

  1. 01Seed coverage-ledger.json for every React SPA handler touching Unbounded Payload & ReDoS.
  2. 02Trace request parameters through accessToken validation down to the sink.
  3. 03Verify with paired positive/negative evidence via business-logic-race-testing.