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
This requirement is verified in following services
Plan | Supported |
---|---|
Essential | 🔴 |
Advanced | 🟢 |
References
- CAPEC™-242. Code injection
- CWE™-173. Improper handling of alternate encoding
- CERT-J-STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
- MISRA-C-3_2. Character set and corresponding encoding shall be documented
- OWASP ASVS-5_3_2. Output encoding and injection prevention
- CASA-5_3_2. Output Encoding and Injection Prevention
free trial
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.