Method, apparatus, terminal and media for detecting document object model-based cross-site scripting attack vulnerability
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJiacai Weng
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJiacai Weng
Estimating the term…
Disclosed are a method and apparatus for detecting a document object model (DOM) based cross-site scripting (XSS) vulnerability, an apparatus thereof, and a terminal are provided. The method includes: obtaining a set of parameter-value pairs from an original web address of a web page, where the set of parameter-value pairs comprises at least one parameter-value pair; replacing a parameter value in a parameter-value pair with feature code, to form a test web address for the web page, where the feature code comprises malicious code that comprises a malicious character and is uniquely identified in a DOM tree of the web page; obtaining page content corresponding to the test web address; converting the page content, into the DOM tree; and detecting whether a XSS vulnerability exists in the parameter-value pair, based on the DOM tree and the feature code.
A method for detecting a document object model based cross-site scripting vulnerability, comprising:
An apparatus for detecting a document object model based cross-site scripting comprising a processor and a memory having processor-executable instructions stored therein, and the instructions when executed by the processor, configure the processor to:
A non-transitory computer readable storage medium, storing computer executable instructions such that the following steps are performed when the executable instructions are executed on a computer:
Dependencies are inferred from the claim text.