V5.4.1: Verify that the application validates or ignores user-submitted filenames, including in a JSON, JSONP, or URL parameter and specifies a filename in the Content-Disposition header field in the response.
ASVS Maturity
V5.4.2
V5.4.2: Verify that file names served (e.g., in HTTP response header fields or email attachments) are encoded or sanitized (e.g., following RFC 6266) to preserve document structure and prevent injection attacks.
ASVS Maturity
V5.4.3
V5.4.3: Verify that files obtained from untrusted sources are scanned by antivirus scanners to prevent serving of known malicious content.