Compare file format and extension
Summary
The system must validate that the format (structure) of the files corresponds to their extension.
Description
This is a security measure that can be useful for validating the integrity and authenticity of files in a system or application. This process involves verifying that the actual content or format of a file matches the file extension it claims to have. Mismatches between file formats and extensions can indicate potential security risks or attempted attacks.
References
- CAPEC-11. Cause web server misclassification
- CAPEC-165. File manipulation
- CWE-434. Unrestricted upload of file with dangerous type
- CWE-646. Reliance on file name or extension of externally-supplied file
- SANS25-10. Unrestricted upload of file with dangerous type
- WASSEC-6_2_4_10. Command execution - Potential malicious file uploads
- NISTSSDF-PS_3_1. Archive and protect each software release
- ISSAF-J_7_3_5. Network security - Anti-virus system (methodology)
- ISSAF-Q_16_27. Host security - Windows security (DLL injection attack)
- OWASPSCP-12. File management
- CWE25-434. Unrestricted upload of file with dangerous type
- NIST800115-3_6. File integrity checking
- ASVS-12_5_1. File download
- ASVS-12_5_2. File download
Weaknesses
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan.If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.
Supported In
This requirement is verified in following services
Essential Plan
Advanced Plan