039 – Define maximum file size
Summary
The files manipulated by the system and the users must have a defined maximum file size (5MB recommended).
Description
When a system allows users to upload or attach files for storage, the maximum file size limit must be defined for these files, in order to avoid issues involving the availability of the service and to reduce the chance of an attacker uploading a file containing malicious software.
Supported In
Advanced: True
References
- CWE-409. Improper handling of highly compressed data (data amplification)
- CWE-770. Allocation of resources without limits or throttling
- SANS25-10. Unrestricted upload of file with dangerous type
- CMMC-CA_L2-3_12_2. Plan of action
- HITRUST-09_j. Controls against malicious code
- ISSAF-K_9_1. Network security - Storage Area Network SAN (practices for the data-at-rest)
- CWE25-434. Unrestricted upload of file with dangerous type
- ASVS-12_1_1. File upload
- ASVS-12_1_3. File upload
- ASVS-11_1_4. Business logic security
- ASVS-12_1_2. File upload
- CASA-11_1_4. Business Logic Security
Weaknesses
Last updated
2024/02/05