Missing Input Size Limits

Detects API endpoints without request body size limits, enabling denial of service via oversized payloads.

zakirkun 028a1ad 2 files · 2.2 KB Updated

File contents

Missing Input Size Limits

Overview

APIs without request body size limits are vulnerable to:

  • Memory exhaustion by sending multi-gigabyte request bodies
  • CPU exhaustion via large JSON/XML documents requiring expensive parsing
  • Storage DoS if large uploads are buffered to disk

Remediation

  • Set explicit body size limits: Express default is 100kb, consider 1MB max for most APIs
  • Use streaming parsers for large uploads instead of buffering in memory
  • Implement per-user upload quota

zakirkun/ice-tea/tree/main/skills/api/input-size-missing commit 028a1ad6ec

Frequently asked questions

npx skillmds@latest add zakirkun/missing-input-size-limits