Skip to content
ShankarStack
HighFile Upload

Insecure File Upload

Upload features that trust client-provided metadata can accept dangerous or malformed files.

Weak validation of type, content and storage of uploaded files can create downstream risk.

Root cause

Validation relies on client-controlled attributes like filename or content-type.

Impact

Varies by how files are stored and served; can include content spoofing or unsafe processing.

Detection methodology

Review validation (server-side type and content checks), storage location and how files are served.

Remediation

Validate type by content server-side, enforce size limits, randomise names, store privately, and serve via controlled, signed URLs.

Secure coding guidance

Never trust client metadata; scan, store outside web root, and serve through an access-controlled handler.