{"title":"Generating Test Paths to Detect XSS Vulnerabilities of Web Applications","authors":"H. Nguyen, Thanh-Nhan Luong, Ninh-Thuan Truong","doi":"10.1109/NICS56915.2022.10013397","DOIUrl":null,"url":null,"abstract":"Web technologies have developed rapidly because web applications are currently leading the trends in software development. In the face of emerging security issues, preventing software security vulnerabilities is a great concern for developers, vendors, and customers. In fact, the cross-site scripting (XSS) attack is a very popular type of attack that causes security vulnerabilities in web systems. However, when testing to detect XSS attacks for web applications, optimizing the test paths still has some problems with the time or space of the test paths. Therefore, in this paper, we propose a method to solve this problem. Our approach uses Q-learning in generating automated test paths to test XSS vulnerabilities for web applications. The proposed method consists of generating the graph of the web application, setting the weight for the graph, building the memory matrix, and generating test paths. We have experimented proposed approach with the online learning website system. The experimental results show a significant reduction in the number of test paths and this helps to reduce the test case space and test time to detect XSS vulnerabilities of web applications.","PeriodicalId":381028,"journal":{"name":"2022 9th NAFOSTED Conference on Information and Computer Science (NICS)","volume":"51 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 9th NAFOSTED Conference on Information and Computer Science (NICS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NICS56915.2022.10013397","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Web technologies have developed rapidly because web applications are currently leading the trends in software development. In the face of emerging security issues, preventing software security vulnerabilities is a great concern for developers, vendors, and customers. In fact, the cross-site scripting (XSS) attack is a very popular type of attack that causes security vulnerabilities in web systems. However, when testing to detect XSS attacks for web applications, optimizing the test paths still has some problems with the time or space of the test paths. Therefore, in this paper, we propose a method to solve this problem. Our approach uses Q-learning in generating automated test paths to test XSS vulnerabilities for web applications. The proposed method consists of generating the graph of the web application, setting the weight for the graph, building the memory matrix, and generating test paths. We have experimented proposed approach with the online learning website system. The experimental results show a significant reduction in the number of test paths and this helps to reduce the test case space and test time to detect XSS vulnerabilities of web applications.