×

XSS detection method and device

  • US 9,021,593 B2
  • Filed: 07/23/2010
  • Issued: 04/28/2015
  • Est. Priority Date: 07/23/2009
  • Status: Active Grant
First Claim
Patent Images

1. A cross-site scripting (XSS) detection method for detecting XSS vulnerabilities in a web page, comprising steps of:

  • determining a set of parameter-value pairs that can be accepted by the web page;

    and for each parameter-value pair in the set;

    constructing a parameter-value pair in which a dedicated script is inserted;

    assembling a URL corresponding to the web page based on the parameter-value pair in which the dedicated script has been inserted, wherein the URL is assembled by modifying a sequence of the parameter-value pair in which the dedicated script has been inserted by adding the dedicated script at an end of the URL and by adding a closing tag of a hypertext markup language element or a specific character before the dedicated script;

    wherein in assembling the URL corresponding to the web page, a plurality of URLs are assembled by changing the sequence of the parameter-value pairs and by inserting other special codes in the URL;

    acquiring dynamic web page content corresponding to the assembled URL;

    simulating the execution of the dynamic web page content, wherein the steps of acquiring the dynamic web page content and simulating the execution of the dynamic web page content are performed respectively for each one of the plurality of URLs, anddetermining when the dedicated script is executed, that the processing of the parameter-value pair in the web page contains XSS vulnerabilities.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×