We have an internal web application that acts as a repository to which users can upload files. These files can be of any format, including HTML pages.
We tested than in IE8, if you upload an HTML file containing several scripts that try to access your cookies, and after downloading you select the "Open" option, the script executes and receives your cookie information without any problems.
Actually, the script can use the XmlHttpRequest object to call the server and perform some malicious operations in the session of the user who uploaded the file.
Is there any way to avoid this? We tested that both Chrome and Firefox do not allow this to happen. How can I avoid this behavior in any browser, including IE8?
source
share