CSACyber Security AuditWebbandflow
Web application vulnerabilities High

Insecure File Upload

A flaw where an application accepts uploaded files without proper checks, allowing dangerous content.

What it is

Insecure file upload occurs when an application lets users upload files without adequately checking their type, content, and where they are stored. An attacker may upload a file that the server will later execute, or that bypasses other protections. The danger lies in how the uploaded file is handled and served afterwards.

Why it matters

A malicious upload can lead to the attacker running code on the server or distributing harmful files to other users.

How to fix it

Validate file type and content, store uploads outside the web root, serve them without executing, and generate safe, non-guessable file names.

Related terms

References

← Back to the glossary