Back to Search
Start Over
Noncespaces: Using randomization to defeat cross-site scripting attacks
- 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.
- Subjects :
- Web server
Web-based simulation
General Computer Science
Web 2.0
Web development
Computer science
Cross-site scripting
Content Security Policy
computer.software_genre
Computer security
Security testing
World Wide Web
Web page
Web design
Server-side scripting
Web application
Mashup
Web navigation
Client-side scripting
business.industry
Web application security
HTML element
Scripting language
Web service
business
Law
computer
Subjects
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