CAPEC-CAPEC-73 - CERT CVE
Naziv

User-Controlled Filename

Sažetak An attack of this type involves an adversary inserting malicious characters (such as a XSS redirection) into a filename, directly or indirectly that is then used by the target software to generate HTML text or other potentially executable content. Many websites rely on user-generated content and dynamically build resources like files, filenames, and URL links directly from user supplied data. In this attack pattern, the attacker uploads code that can execute in the client browser and/or redirect the client browser to a site that the attacker owns. All XSS attack payload variants can be used to pass and exploit these vulnerabilities.
Preduvjeti The victim must trust the name and locale of user controlled filenames.
Rješenja ['Design: Use browser technologies that do not allow client side scripting.', 'Implementation: Ensure all content that is delivered to client is sanitized against an acceptable content specification.', 'Implementation: Perform input validation for all remote content.', 'Implementation: Perform output validation for all remote content.', 'Implementation: Disable scripting languages such as JavaScript in browser', 'Implementation: Scan dynamically generated content against validation specification']