2011 · 45 citations · 14 references
ComputingComputer ScienceKnowledge RepresentationProgramming LanguagesWeb MappingError CorrectionError DetectionError HandlingServer-side Web DevelopmentSoftware ValidationSymbolic ExecutionAutomated Bug FindingExecution Algorithm DesignHtml ParsingHtml Validation
Checking/correcting HTML validation errors in Web pages is helpful for Web developers in finding/fixing bugs. However, existing validating/fixing tools work well only on static HTML pages and do not help fix the corresponding server code if validation errors are found in HTML pages, due to several challenges with dynamically generated pages in Web development. We propose PhpSync, a novel automatic locating/fixing tool for HTML validation errors in PHP-based Web applications. Given an HTML page produced by a server-side PHP program, PhpSync uses Tidy, an HTML validating/correcting tool to find the validation errors in that HTML page. If errors are detected, it leverages the fixes from Tidy in the given HTML page and propagates them to the corresponding location(s) in PHP code. Our core solutions include 1) a symbolic execution algorithm on the given PHP program to produce a single tree-based model, called D-model, which approximately represents its possible client page outputs, 2) an algorithm mapping any text in the given HTML page to the text(s) in the node(s) of the D-model and then to the PHP code, and 3) a fix-propagating algorithm from the fixes in the HTML page to the PHP code via the D-model and the mapping algorithm. Our empirical evaluation shows that on average, PhpSync achieves 96.7% accuracy in locating the corresponding locations in PHP code from client pages, and 95% accuracy in propagating the fixes to the server-side code.
14
Static detection of cross-site scripting vulnerabilities
Gary Wassermann, Zhendong Su · 2008 · 388 citations
Static detection of security vulnerabilities in scripting languages
Yichen Xie, Alex Aiken · 2006 · 370 citations
Automatic creation of SQL Injection and cross-site scripting attacks
Adam Kieyzun, Philip J. Guo, Karthick Jayaraman et al. · 2009 · 341 citations · Full text
Static approximation of dynamically generated Web pages
Yasuhiko Minamide · 2005 · 255 citations