Description
This script is vulnerable to XSS (Cross-site scripting). The web application allows file upload and Acunetix was able to upload a file containing HTML content. When HTML files are allowed, XSS payload can be injected in the file uploaded. Check Attack details for more information about this attack.
Remediation
Restrict file types accepted for upload: check the file extension and only allow certain files to be uploaded. Use a whitelist approach instead of a blacklist. Check for double extensions such as .php.png. Check for files without a filename like .htaccess (on ASP.NET, check for configuration files like web.config). Change the permissions on the upload folder so the files within it are not executable. If possible, rename the files that are uploaded.
References
Related Vulnerabilities
WordPress Plugin NextGEN Gallery-WordPress Gallery 'xml/media-rss.php' Cross-Site Scripting (1.5.1)
WordPress Plugin WPFront Scroll Top Cross-Site Scripting (2.0.5.07184)
WordPress Plugin VN-Calendar Multiple Cross-Site Scripting Vulnerabilities (1.0)
WordPress Plugin White Label CMS Cross-Site Scripting (2.2.8)
WordPress Plugin Wufoo Shortcode Cross-Site Scripting (1.51)