Home > taxonomy > asvs 4.0.3 > 12 files and resources > 05 file download
File Download V12.5.1 Verify that the web tier is configured to serve only files with specific file extensions to prevent unintentional information and source code leakage. For example, backup files (e.g. .bak), temporary working files (e.g. .swp), compressed files (.zip, .tar.gz, etc) and other extensions commonly used by editors should be blocked unless required.
Level 1 required: True
Level 2 required: True
Level 3 required: True
CWE: 552
V12.5.2 Verify that direct requests to uploaded files will never be executed as HTML/JavaScript content.
Level 1 required: True
Level 2 required: True
Level 3 required: True
CWE: 434
Disclaimer: Credit via OWASP ASVS . For more information visit The OWASP ASVS Project or Github respository. . OWASP ASVS is under the Creative Commons Attribution-Share Alike v3.0 license.
OWASP Cornucopia
OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 3.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one. © 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.