logo

040 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.


Supported In

Essential: True

Advanced: True


References


Weaknesses


Last updated

2024/01/18