Back to Search Start Over

Noncespaces: Using randomization to defeat cross-site scripting attacks

Authors :
Matthew Van Gundy
Hao Chen
Source :
Computers & Security. 31:612-628
Publication Year :
2012
Publisher :
Elsevier BV, 2012.

Abstract

Cross-site scripting (XSS) vulnerabilities are among the most common and serious web application vulnerabilities. It is challenging to eliminate XSS vulnerabilities because it is difficult for web applications to sanitize all user input appropriately. We present Noncespaces, a technique that enables web clients to distinguish between trusted and untrusted content to prevent exploitation of XSS vulnerabilities. Using Noncespaces, a web application randomizes the the (X)HTML tags and attributes in each document before delivering it to the client. As long as the attacker is unable to guess the random mapping, the client can distinguish between trusted content created by the web application and untrusted content provided by an attacker. To implement Noncespaces with minimal changes to web applications, we leverage a popular web application architecture to automatically apply Noncespaces to static content processed through a popular PHP template engine. We design a policy language for Noncespaces, implement a training mode to assist policy development, and conduct extensive security testing of a generated policy for two large web applications to show the effectiveness of our technique.

Details

ISSN :
01674048
Volume :
31
Database :
OpenAIRE
Journal :
Computers & Security
Accession number :
edsair.doi...........94afc4b509088750a41ee5964d06c9b1
Full Text :
https://doi.org/10.1016/j.cose.2011.12.004