Skip to main content

SID-HARD-07 — Resource Upload Constraints

PropertyValue
Ownerplatform
Categorytechnical
CSF Functionprotect
GroupSystem Hardening Controls

Description

Server-side controls for any user-submitted resources (e.g. FaceTec selfie images, credential attachments). (1) Maximum file size enforced before reading the full body. (2) Content-type validation against an allow-list. (3) Uploaded files stored outside the web root with restricted permissions. (4) Files served with Content-Disposition: attachment to prevent browser execution. (5) Compressed file bomb protection where applicable.

Components

Source References

Framework Requirements

OWASP ASVS 4.0.3 Level 3: V1.12, V12.1, V12.2, V12.4, V12.5

STRIDE Threat Model: FT-D-1, FT-D-2