Client-side cross-site scripting protection

Kirda, Engin;Jovanovich, Nenad;Kruegel, Christopher;Vigna, Giovanni
Computers and Security Journal, Vol. 28, N°7, October 2009

 

Web applications are becoming the dominant way to provide access to online services. At the same time, web application vulnerabilities are being discovered and disclosed at an alarming rate. Web applications often make use of JavaScript code that is embedded into web pages to support dynamic client-side behavior. This script code is executed in the context of the user's web browser. To protect the user's environment from malicious JavaScript code, browsers use a sand-boxing mechanism that limits a script to access only resources associated with its origin site. Unfortunately, these security mechanisms fail if a user can be lured into downloading malicious JavaScript code from an intermediate, trusted site. In this case, the malicious script is granted full access to all resources (e.g., authentication tokens and cookies) that belong to the trusted site. Such attacks are called cross-site scripting (XSS) attacks.

In general, XSS attacks are easy to execute, but difficult to detect and prevent. One reason is the high flexibility of HTML encoding schemes, offering the attacker many possibilities for circumventing server-side input filters that should prevent malicious scripts from being injected into trusted sites. Also, devising a client-side solution is not easy because of the difficulty of identifying JavaScript code as being malicious. This paper presents Noxes, which is, to the best of our knowledge, the first client-side solution to mitigate cross-site scripting attacks. Noxes acts as a web proxy and uses both manual and automatically generated rules to mitigate possible cross-site scripting attempts. Noxes effectively protects against information leakage from the user's environment while requiring minimal user interaction and customization effort.


DOI
Type:
Journal
Date:
2009-10-31
Department:
Sécurité numérique
Eurecom Ref:
2775
Copyright:
© Elsevier. Personal use of this material is permitted. The definitive version of this paper was published in Computers and Security Journal, Vol. 28, N°7, October 2009 and is available at : http://dx.doi.org/10.1016/j.cose.2009.04.008

PERMALINK : https://www.eurecom.fr/publication/2775