ASVS Requirement 1.2.1
- Level: 1
- Chapter: V1 Encoding and Sanitization
- Section: V1.2 Injection Prevention
- Source: 0x10-V1-Encoding-and-Sanitization.md
Description
Verify that output encoding for an HTTP response, HTML document, or XML document is relevant for the context required, such as encoding the relevant characters for HTML elements, HTML attributes, HTML comments, CSS, or HTTP header fields, to avoid changing the message or document structure.