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). Proper tests are required to assess the security of web applications. In this paper, we resort on a search based approach for security testing of web applications. We take advantage of static analysis to detect candidate cross-site scripting vulnerabilities. Input values that trap 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 handled by a solver. Search results represent test cases to be used by software developers to understand and fix security problems. We implemented this procedure in a prototype and evaluated it on real world PHP code.
Security Testing of Web Applications: a Search Based Approach for Cross-Site Scripting Vulnerabilities
Avancini, Andrea;Ceccato, Mariano
2011-01-01
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). Proper tests are required to assess the security of web applications. In this paper, we resort on a search based approach for security testing of web applications. We take advantage of static analysis to detect candidate cross-site scripting vulnerabilities. Input values that trap 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 handled by a solver. Search results represent test cases to be used by software developers to understand and fix security problems. We implemented this procedure in a prototype and evaluated it on real world PHP code.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.