The invention discloses a cross-site script
vulnerability detection method based on a
percolation test. According to the cross-site script
vulnerability detection method, the technical problem of low detection efficiency in a traditional cross-site script
vulnerability detection method is solved. The technical scheme provided by the invention is that the cross-site script
vulnerability detection method comprises the following steps of: firstly, acquiring a page; secondly, extracting form information and carrying out the
percolation test on the extracted form; and finally, carrying out session retaining and redirection tracking. Due to the adoption of a session retaining and redirection tracking method, the conditions that the analysis for Web pages is incomprehensive are reduced, all pages of a
Web site are analyzed and detected and further the automatic detection capability is improved. According to a
percolation test strategy, the detection range of the XSS (Cross-Site Script) is gradually narrowed and the depth detection for the safe pages is avoided. While test statements are injected, test statements for closing
HTML (
Hypertext Markup Language) statements are actively constructed according to the returned page information, so that interaction frequencies with a
server are reduced and the detection efficiency of the XXS vulnerabilities of large complex Websites is improved.