S2XS2: A Server Side Approach to Automatically Detect XSS Attacks
Authors:
- Hossain ShahriarHSHossain Shahriar
- Mohammad ZulkernineMZMohammad Zulkernine
- 1 December 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 7-14
Abstract
Cross site scripting (XSS) vulnerabilities are widespread in web-based programs. Server side detection of suspected contents can mitigate XSS exploitations early. Unfortunately, existing serve side approaches impose modification of server and client side environments. In this paper, we develop an automated framework to detect XSS attacks at the server side based on the notion of boundary injection and policy generation. Boundaries mark content generation locations in server script code. We derive expected benign features of dynamic contents that are matched during response page generation to detect attacks. We develop a prototype tool to automatically insert boundaries and generate policies for JSP programs. We evaluate the approach with four JSP programs. The results indicate that the approach detects most of the well known XSS attacks. Moreover, the false positive rates vary between zero and 5.2%. The approach suffers from negligible runtime overhead.Keywords
This publication has 11 references indexed in Scilit:
- Injecting Comments to Detect JavaScript Code Injection Attacks2011
- Reining in the web with content security policy2010
- Regular expressions considered harmful in client-side XSS filters2010
- Blueprint: Robust Prevention of Cross-site Scripting Attacks for Existing Browsers2009
- SWAP: Mitigating XSS attacks using a reverse proxy2009
- MUTEC: Mutation-based testing of Cross Site Scripting2009
- Automatic creation of SQL Injection and cross-site scripting attacks2009
- XSSDS: Server-Side Detection of Cross-Site Scripting Attacks2008
- Using web application construction frameworks to protect against code injection attacks2007
- Improving security using extensible lightweight static analysisIEEE Software, 2002