044 – Define an explicit charset
Summary
All system files generated dynamically must have an explicitly defined character set (charset).
Description
This control refers on specifying the character set used for encoding text in files that are dynamically generated by a system. It is important for proper interpretation and rendering of text data, ensuring consistent behavior across different applications.
Supported In
Advanced: True
References
- CAPEC-242. Code injection
- CWE-173. Improper handling of alternate encoding
- CERTJ-STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
- MISRAC-3_2. Character set and corresponding encoding shall be documented
- ASVS-5_3_2. Output encoding and injection prevention
- CASA-5_3_2. Output Encoding and Injection Prevention
Last updated
2024/01/18