Security Testing of Web Applications: A Search-Based Approach for Cross-Site Scripting Vulnerabilities

  • Authors:
  • Andrea Avancini;Mariano Ceccato

  • Affiliations:
  • -;-

  • Venue:
  • SCAM '11 Proceedings of the 2011 IEEE 11th International Working Conference on Source Code Analysis and Manipulation
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

More and more web applications suffer the presence of cross-site scripting vulnerabilities that could be exploited by attackers to access sensitive information (such as credentials or credit card numbers). Hence proper tests are required to assess the security of web applications. In this paper, we resort to a search based approach for security testing web applications. We take advantage of static analysis to detect candidate cross-site scripting vulnerabilities. Input values that expose these vulnerabilities are searched by a genetic algorithm and, to help the genetic algorithm escape local optima, symbolic constraints are collected at run-time and passed to a solver. Search results represent test cases to be used by software developers to understand and fix security problems. We implemented this approach in a prototype and evaluated it on real world PHP code.