ASP.NET Core (.NET 8/9) · CWE-1333

ASP.NET Core: Unbounded Payload & ReDoS (Adversarial PoC Verification)

Prove boundary crossing with paired positive/negative controls. Prevent exponential regex backtracking, deep JSON nesting, or unpaginated query DoS. Tailored for ASP.NET Core: Apply AuthorizationHandler policies and EF Core parameterized queries.

Primary AegisSec skill
native-memory-protocols-dos ->
Companion: business-logic-race-testing
Coverage ledger tracking key
surface:aspnet-core::boundary:dos-redos-bounds::angle:verification
Timeout/depth stress check on staging parser endpoint
Risk boundary
// Unverified ASP.NET Core path (CWE-1333 · Adversarial PoC Verification)
// Handler accepts input without validating ClaimTypes.NameIdentifier.
Hardened guard
// Hardened ASP.NET Core (CWE-1333 · Adversarial PoC Verification)
// 1. Apply AuthorizationHandler policies and EF Core parameterized queries
// 2. Enforce strict body size caps, pagination ceilings, request timeouts, and linear regex engines.

Verification steps

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