A method and a terminal for detecting XSS vulnerabilities
A vulnerability and terminal technology, applied in the field of XSS vulnerability detection, can solve the problems of zero detection ability, difficult to deal with websites, and inability to parse JS scripts, etc., and achieve high accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0075] Please refer to figure 1 , a method for detecting XSS vulnerabilities, comprising steps:
[0076] S1. Generate a second character string according to the XSS vulnerability detection rule and the generated first character string;
[0077] Step S1 includes:
[0078] S11. Acquiring the preset identifier in the XSS vulnerability detection rule;
[0079] S12. Generate a first character string, where the first character string is composed of a plurality of randomly generated characters;
[0080] S13. Replace the preset identifier in the XSS vulnerability detection rule with the first character string to obtain a second character string;
[0081] S2. Generate a test link according to the second character string and the link of the webpage to be detected, and send a request to the test link to obtain response information;
[0082] Step S2 includes:
[0083] S21. Obtain the parameter value in the link of the webpage to be detected;
[0084] S22. Add the second character st...
Embodiment 2
[0097] This embodiment will further illustrate how the above-mentioned method for detecting XSS vulnerabilities of the present invention is implemented in combination with specific application scenarios:
[0098] 1. Generate the second string according to the XSS vulnerability detection rules and the generated first string;
[0099] 1.1. Obtain the preset identifier in the XSS vulnerability detection rule;
[0100] 1.2. Generate a first character string, the first character string is composed of a plurality of randomly generated digital characters, the digital characters are generated by second or millisecond level random number seeds, and the first character string preferably includes 9 digit characters ;
[0101] 1.3. Replace the preset identifier in the XSS vulnerability detection rule with the first character string to obtain a second character string;
[0102] 2. Generate a test link according to the second character string and the link of the webpage to be detected, an...
Embodiment 3
[0124] Please refer to figure 2 , a terminal 1 for detecting XSS vulnerabilities, including a memory 2, a processor 3, and a computer program stored on the memory 2 and operable on the processor 3, and the processor 3 implements the first embodiment when executing the program. each step.
[0125] To sum up, the method and terminal for detecting XSS vulnerabilities provided by the present invention generate a second string according to the XSS vulnerability detection rules and the generated first string, and generate a second string according to the second string and the pending Detect the link of the web page to generate a test link, and send a request to the test link, get the response information, perform XSS vulnerability detection according to the response information, and accurately detect the XSS vulnerability existing in the web page embedded with the script, and the accuracy is high, By obtaining the parameter value in the link of the webpage to be detected; add...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

