2010 · 16 citations · 22 references
ComputingComputer ScienceCybersecurityApplication SecurityComputer SecurityWeb SecurityApplication Security TestingClient-side SecurityCross-site ScriptingWeb Application SecurityWeb Application TestingWeb Application VulnerabilitiesAutomated Web Security TestingCommand InjectionCommand Injection PreventionCross-site Scripting Defense MechanismsCross-site Scripting MitigationsInjection AttacksSanitizationScript Injection
The primary defense against cross site scripting attacks in web applications is the use of sanitization, the practice of filtering untrusted inputs. We analyze sanitizer use in a shipping web application with over 400,00 lines of code, one of the largest applications studied to date. Our analysis reveals two novel problems: inconsistent sanitization and inconsistent multiple sanitization. We formally define these problems and propose SCRIPTGARD: a system for preventing such problems automatically matching the correct sanitizer with the correct browser context. While command injection techniques are the subject of intense prior research, none of the previous approaches consider both server and browser context, none of them achieve the same degree of precision, and many other mitigation techniques require major changes to server side code. Our approach, in contrast, can be incrementally retrofitted to legacy systems. We show how to provide an aid to testers during development. Finally we sketch how SCRIPTGARD can be used as a runtime mitigation technique. 1.
22
Securing web application code by static analysis and runtime protection
Yao‐Wen Huang, Fang Yu, Christian Hang et al. · 2004 · 566 citations
Static detection of security vulnerabilities in scripting languages
Yichen Xie, Alex Aiken · 2006 · 370 citations