MUTEC: Mutation-based testing of Cross Site Scripting

  • Authors:
  • H. Shahriar;M. Zulkernine

  • Affiliations:
  • Sch. of Comput., Queen's Univ., Kingston, ON;Sch. of Comput., Queen's Univ., Kingston, ON

  • Venue:
  • IWSESS '09 Proceedings of the 2009 ICSE Workshop on Software Engineering for Secure Systems
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Cross Site Scripting (XSS) is one of the worst vulnerabilities that allow malicious attacks such as cookie thefts and Web page defacements. Testing an implementation against XSS vulnerabilities (XSSVs) can avoid these consequences. Obtaining an adequate test data set is essential for testing of XSSVs. An adequate test data set contains effective test cases that can reveal XSSVs. Unfortunately, traditional testing techniques for XSSVs do not address the issue of adequate testing. In this work, we apply the idea of mutation-based testing technique to generate adequate test data sets for testing XSSVs. Our work addresses XSSVs related to Web-applications that use PHP and JavaScript code to generate dynamic HTML contents. We propose 11 mutation operators to force the generation of adequate test data set. A prototype mutation-based testing tool named MUTEC is developed to generate mutants automatically. The proposed operators are validated by using five open source applications having XSSVs. The results indicate that the proposed operators are effective for testing XSSVs.