Django (Python / ORM) · CWE-1333

Django: 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 Django: Filter QuerySets by request.user and avoid raw SQL string formatting.

Primary AegisSec skill
native-memory-protocols-dos ->
Companion: business-logic-race-testing
Coverage ledger tracking key
surface:django::boundary:dos-redos-bounds::angle:verification
Timeout/depth stress check on staging parser endpoint
Risk boundary
// Unverified Django path (CWE-1333 · Adversarial PoC Verification)
// Handler accepts input without validating request.user.
Hardened guard
// Hardened Django (CWE-1333 · Adversarial PoC Verification)
// 1. Filter QuerySets by request.user and avoid raw SQL string formatting
// 2. Enforce strict body size caps, pagination ceilings, request timeouts, and linear regex engines.

Verification steps

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