A vulnerability detection method, device, computer equipment and storage medium
By conducting vulnerability detection on websites and using similarity matching between fingerprint information and vulnerability scan files, the problem of low efficiency of website vulnerability detection is solved, efficient vulnerability detection is achieved, and Internet information security is improved.
Patent Information
- Application Number
- CN202011196053.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-10-30
AI Technical Summary
Existing technologies are difficult to effectively detect and reduce security vulnerabilities in websites, resulting in threats to Internet information security.
By determining the target vulnerability scanning type of the website to be detected, extracting its fingerprint information, and calculating the similarity with the fingerprint information of the website in the fingerprint database, the vulnerability scanning file of similar websites is obtained, and vulnerability detection is performed on the website to be detected based on this file.
It improves the efficiency of vulnerability detection, can detect as many vulnerabilities as possible in a short period of time, and enhances the security of Internet information.
Smart Images

Figure CN112287355B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a vulnerability detection method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of information technology, most websites have some security loopholes. Criminals can steal business secrets or users' personal private information by attacking these loopholes, posing a serious threat to Internet information security.
[0003] In the process of research and practice of related technologies, the inventor of the present application discovered that vulnerability detection can be performed on websites. For example, cloud servers can be used to assist in vulnerability detection on websites to reduce vulnerabilities in websites and maintain the security of Internet information. Summary of the invention
[0004] The embodiments of the present application provide a vulnerability detection method, apparatus, computer equipment and storage medium, which can improve the efficiency of vulnerability detection.
[0005] The present application provides a vulnerability detection method, including:
[0006] Determine the target vulnerability scanning type of the website to be detected;
[0007] Based on the target vulnerability scanning type, fingerprint extraction is performed on the website to be detected to obtain target website fingerprint information of the website to be detected;
[0008] Obtaining the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, wherein the fingerprint library includes the website fingerprint information of at least one website;
[0009] Based on the similarity, determining a target website similar to the website to be detected from the websites in the fingerprint library;
[0010] Obtaining a vulnerability scanning file corresponding to the target website;
[0011] Based on the vulnerability scanning file, vulnerability detection is performed on the website to be detected.
[0012] Accordingly, an embodiment of the present application provides a vulnerability detection device, including:
[0013] A scanning type determination unit, used to determine the target vulnerability scanning type of the website to be detected;
[0014] An extraction unit, configured to extract fingerprints of the website to be detected based on the target vulnerability scanning type, and obtain target website fingerprint information of the website to be detected;
[0015] A first acquisition unit is used to acquire the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, wherein the fingerprint library includes the website fingerprint information of at least one website;
[0016] A website determination unit, configured to determine a target website similar to the website to be detected from the websites in the fingerprint library based on the similarity;
[0017] A second acquisition unit is used to acquire a vulnerability scanning file corresponding to the target website;
[0018] The first vulnerability detection unit is used to perform vulnerability detection on the website to be detected based on the vulnerability scanning file.
[0019] In one embodiment, the scanning similarity determination unit includes:
[0020] A page display subunit, used to display a vulnerability scanning type page of the website to be detected, wherein the vulnerability scanning type page includes a selection control of the vulnerability scanning type;
[0021] The scan type determination subunit is used to determine the target vulnerability scan type of the website to be detected in response to a selection operation on the target selection control.
[0022] In one embodiment, the extraction unit comprises:
[0023] An interface determination subunit, used to determine a fingerprint extraction interface corresponding to the target vulnerability scanning type;
[0024] The interface calling subunit is used to call the fingerprint extraction interface corresponding to the website to be detected to obtain the target fingerprint information of the website to be detected.
[0025] In one embodiment, the extraction unit comprises:
[0026] A first sending subunit, configured to send a fingerprint extraction message to a network device corresponding to the website to be detected based on the target vulnerability scanning type and the address information of the website to be detected;
[0027] An acquisition subunit, used for acquiring a fingerprint extraction response message returned by the network device based on the fingerprint extraction message;
[0028] The fingerprint generating subunit is used to generate the target website fingerprint information of the website to be detected according to the fingerprint extraction response message.
[0029] In one embodiment, the fingerprint generation subunit is further used to match the response header and the response body according to a preset fingerprint matching rule to obtain a matching result; based on the matching result, determine the target website fingerprint information of the website to be detected.
[0030] In one embodiment, the first acquiring unit includes:
[0031] The encoding subunit is used to encode the target website fingerprint information and the website fingerprint information in the fingerprint library to obtain the encoded target website fingerprint information and the encoded website fingerprint information;
[0032] The calculation subunit is used to calculate the similarity between the encoded target website fingerprint information and the encoded website fingerprint information, and obtain the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library.
[0033] In one embodiment, the website determination unit includes:
[0034] The website determination subunit is used to determine, based on the similarity, a target website whose similarity with the website to be detected reaches a threshold from the fingerprint library.
[0035] In one embodiment, the first vulnerability detection unit includes:
[0036] A second sending subunit, configured to send an operation execution request carrying a preset rule to the network device based on the vulnerability scanning file;
[0037] The receiving subunit is used to receive the request response information returned by the network device based on the operation execution request, and perform vulnerability detection on the request response information, where the request response information is obtained by the network device in response based on the preset rule.
[0038] In one embodiment, the vulnerability detection device further includes:
[0039] A time detection unit, used for detecting the actual response time of the network device in real time;
[0040] The vulnerability determination unit is used to determine that the website to be detected has a vulnerability if the actual response time is within the preset request execution time range.
[0041] In one embodiment, the vulnerability detection device further includes:
[0042] A clustering unit is used to cluster the domain name information and fingerprint information in the vulnerability database to obtain clustered domain name information and clustered fingerprint information;
[0043] A third acquisition unit is used to acquire a vulnerability scanning file corresponding to the vulnerability information according to the vulnerability information of the vulnerability in the vulnerability database;
[0044] A relationship creation unit, used to create an association relationship between the clustered domain name information, the clustered fingerprint information, and the vulnerability information;
[0045] The fingerprint library creation unit is used to create the fingerprint library based on the association relationship, and the fingerprint library includes the vulnerability scanning file corresponding to the vulnerability information.
[0046] In one embodiment, the vulnerability detection device includes:
[0047] A fourth acquisition unit, configured to acquire a preset vulnerability scanning file if the similarity between the website fingerprint information in the fingerprint library and the website to be detected does not reach a threshold;
[0048] The second vulnerability detection unit is used to perform vulnerability detection on the website to be detected based on the preset vulnerability scanning file.
[0049] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the steps in any vulnerability detection method provided in the embodiments of the present application.
[0050] Correspondingly, an embodiment of the present application also provides a storage medium, which stores multiple instructions, and the instructions are suitable for loading by a processor to execute the steps in any vulnerability detection method provided in the embodiment of the present application.
[0051] The embodiment of the present application can determine the target vulnerability scanning type of the website to be detected; based on the target vulnerability scanning type, perform fingerprint extraction on the website to be detected to obtain the target website fingerprint information of the website to be detected; obtain the target website fingerprint information and the similarity between the website fingerprint information in the fingerprint library, the fingerprint library includes the website fingerprint information of at least one website; based on the similarity, determine the target website similar to the website to be detected from the website in the fingerprint library; obtain the vulnerability scanning file corresponding to the target website; based on the vulnerability scanning file, perform vulnerability detection on the website to be detected. This scheme can determine the target website similar to the website to be detected from the fingerprint library according to the similarity between the extracted target website fingerprint information of the website to be detected and the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a relatively short time, and can improve the efficiency of vulnerability detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 Schematic diagram of a vulnerability detection method provided in an embodiment of the present application;
[0054] Figure 2a is a flow chart of a vulnerability detection method provided by an embodiment of the present application;
[0055] Figure 2b It is a system overall flow chart of the vulnerability detection method provided by the embodiment of the present application;
[0056] Figure 2c This is a schematic diagram of website fingerprint information of the vulnerability detection method provided in the embodiment of the present application;
[0057] Figure 3 is another flow chart of the vulnerability detection method provided by an embodiment of the present application;
[0058] Figure 4a is a device diagram of a vulnerability detection method provided in an embodiment of the present application;
[0059] Figure 4b is another device diagram of the vulnerability detection method provided by an embodiment of the present application;
[0060] Figure 4c is another device diagram of the vulnerability detection method provided by an embodiment of the present application;
[0061] Figure 4d is another device diagram of the vulnerability detection method provided by an embodiment of the present application;
[0062] Figure 4e is another device diagram of the vulnerability detection method provided by an embodiment of the present application;
[0063] Figure 4f is another device diagram of the vulnerability detection method provided by an embodiment of the present application;
[0064] Figure 5 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0066] The embodiments of the present application provide a vulnerability detection method, device, computer equipment and storage medium. Specifically, the embodiments of the present application provide a vulnerability detection device suitable for computer equipment. Among them, the computer equipment can be a terminal or a server and other equipment, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application is not limited here.
[0067] refer to Figure 1 Taking the computer device as a cloud server as an example, the cloud server determines the target vulnerability scanning type of the website to be detected; based on the target vulnerability scanning type, the fingerprint of the website to be detected is extracted to obtain the target website fingerprint information of the website to be detected; the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library is obtained, and the fingerprint library includes the website fingerprint information of at least one website; based on the similarity, a target website similar to the website to be detected is determined from the websites in the fingerprint library; a vulnerability scanning file corresponding to the target website is obtained; based on the vulnerability scanning file, a vulnerability detection is performed on the website to be detected.
[0068] Among them, the target fingerprint information of the website to be detected can be obtained based on the cloud platform technology, and the cloud platform is also called cloud computing platform, which refers to a service based on hardware resources and software resources, providing computing, network and storage capabilities. The cloud platform in this embodiment can be understood as a platform based on the above-mentioned cloud server, which can provide users with various services they need, such as providing users with company website construction and operation services, etc. Users can purchase cloud server resources on the cloud platform, such as storage resources and computing resources, etc. Users can complete various tasks based on the purchased resources and various components provided by the cloud server.
[0069] Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0070] From the above, it can be seen that the embodiment of the present application can determine the target website similar to the website to be detected from the fingerprint library based on the extracted target website fingerprint information of the website to be detected and the similarity between the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a shorter time, and can improve the efficiency of vulnerability detection.
[0071] The present embodiments may be described in detail below. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0072] The embodiment of the present application provides a vulnerability detection method, which can be executed by a terminal or a server, or by both the terminal and the server. The embodiment of the present application takes the vulnerability detection method executed by the server as an example for explanation, specifically, the method is executed by a vulnerability detection device integrated in the server. Figure 2a As shown, the specific process of the vulnerability detection method can be as follows:
[0073] 201. Determine the target vulnerability scanning type of the website to be tested.
[0074] Among them, the target vulnerability scan type refers to the type of vulnerability scan for the website to be detected. For example, in the vulnerability scan type page, multiple vulnerability scan types are displayed, such as quick scan type, deep scan type, target vulnerability scan type, and corresponding selection controls. The target selection control corresponding to the target vulnerability scan type can be used to trigger the operation to determine the target vulnerability scan type for the website to be detected.
[0075] Among them, the quick scan type can scan quickly, but there may be vulnerability risks. The deep scan type has a complete range of scan types and scan modes, but the scan time is long.
[0076] In one embodiment, the step of “determining the target vulnerability scan type of the website to be detected” may include:
[0077] Display the vulnerability scan type page of the website to be detected, the vulnerability scan type page includes a selection control for the vulnerability scan type;
[0078] In response to a selection operation on a target selection control, a target vulnerability scan type of the website to be detected is determined.
[0079] Among them, in response to a condition or state on which the executed operation depends, when the dependent condition or state is met, one or more operations executed may be real or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0080] 202. Based on the target vulnerability scanning type, fingerprint extraction is performed on the website to be detected to obtain target website fingerprint information of the website to be detected.
[0081] Among them, the fingerprint extraction of the website to be detected can be performed in a variety of ways. For example, it can be based on open source Web fingerprint tools, such as Wappalyzer (browser plug-in), Whatweb (web application fingerprint recognition tool) and other tools, and can obtain information including CMS (Content Management System) identification, js framework, component container, code language, CDN (Content-delivery Network), WAF (Web Application Firewall web application firewall) and other information.
[0082] Among them, Wappalyzer is a browser plug-in that can identify what kind of web technology a website uses. It can detect CMS and e-commerce systems, message boards, javascript frameworks, hosting panels, analysis and statistics tools, and other web systems. The company behind Wappalyzer can also collect some information about web programs for statistical analysis, revealing the usage and growth of various web systems. In fact, Wappalyzer is a fingerprint recognition tool.
[0083] Among them, whatweb is a web application fingerprinting tool. It can automatically identify web technologies, including content management systems (CMS), blog platforms, statistics / analytics packages, Javascript libraries, servers, and embedded devices. WhatWeb has more than 1,000 plug-ins, each of which can identify different things. WhatWeb also identifies version numbers, email addresses, account IDs, web framework modules, SQL (Structured Query Language) errors, etc.
[0084] In one embodiment, in order to obtain the website fingerprint information of the website to be detected, it can be obtained by calling an interface, and the step of "based on the target vulnerability scanning type, extracting the fingerprint of the website to be detected to obtain the target website fingerprint information of the website to be detected" may include:
[0085] Determine the fingerprint extraction interface corresponding to the target vulnerability scanning type;
[0086] Call the fingerprint extraction interface corresponding to the website to be detected to obtain the target website fingerprint information of the website to be detected.
[0087] In one example, the fingerprint can be extracted based on an open source fingerprint extraction tool. For example, a fingerprint extraction interface can be called, and then the website URL (address) of the website to be detected can be input to output the fingerprint.
[0088] In one embodiment, the step of “extracting fingerprints from the website to be detected based on the target vulnerability scanning type to obtain target website fingerprint information of the website to be detected” may include:
[0089] Based on the target vulnerability scanning type and the address information of the website to be detected, a fingerprint extraction message is sent to the network device corresponding to the website to be detected;
[0090] Obtain the fingerprint extraction response message returned by the network device based on the fingerprint extraction message;
[0091] According to the fingerprint extraction response message, the target website fingerprint information of the website to be detected is generated.
[0092] In one example, an HTTP (request-response protocol) request can be sent to the network device corresponding to the website to be detected, the response header and response body can be obtained, and a match is performed according to a preset fingerprint matching rule. Based on the matching result, the target website fingerprint information of the website to be detected is determined.
[0093] In one embodiment, the fingerprint extraction response message includes a message response header and a message response body. The detailed process of the step of "generating target website fingerprint information of the website to be detected according to the fingerprint extraction response message" may include:
[0094] Match the response header and the response body according to the preset fingerprint matching rules to obtain a matching result;
[0095] Based on the matching results, the target website fingerprint information of the website to be detected is determined.
[0096] In one example, if Figure 2b As shown, the first step: the user adds a scan task and selects the scan type mode. On the basis of the original (quick scan type, deep scan type), a target vulnerability scan type mode can be added;
[0097] Step 2: Enter different branches according to the scanning mode selected by the user. If the user selects the target vulnerability scanning type mode, then it is necessary to add a pre-scan process to extract the target website fingerprint of the website to be detected on the basis of the original connectivity detection. The fingerprint extraction method can be based on open source tools for obtaining web fingerprints, such as Wappalyzer, WahtWeb, etc., which can obtain information including CMS identification, js framework, component container, code language, CDN, WAF, etc.
[0098] Among them, the target website fingerprint information can be as follows Figure 2c The web fingerprint information shown may include CMS information, front-end technology, web middleware, back-end server, back-end development language, operating system information and other information. The web fingerprint information may be composed of multiple sub-information.
[0099] 203. Obtain the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, where the fingerprint library includes the website fingerprint information of at least one website.
[0100] The fingerprint library includes the association between the website, the website fingerprint information corresponding to the website, and the vulnerability scanning file corresponding to the website. When the target website is determined from the fingerprint library, the vulnerability scanning file corresponding to the target website can be obtained according to the association, and so on.
[0101] In one embodiment, the step of “obtaining the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library” may include:
[0102] Encode the target website fingerprint information and the website fingerprint information in the fingerprint library to obtain the encoded target website fingerprint information and the encoded website fingerprint information;
[0103] The similarity between the encoded target website fingerprint information and the encoded website fingerprint information is calculated to obtain the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library.
[0104] In one example, the target website fingerprint information of the website to be detected and the website fingerprint information in the fingerprint library can be respectively encoded and escaped to obtain the encoded and escaped target website fingerprint information and the encoded and escaped website fingerprint information, and then the similarity between the encoded and escaped target website fingerprint information and the encoded and escaped website fingerprint information is calculated to determine the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library. For example, the similarity between the compiled target website and the encoded and escaped URL fingerprint can be calculated according to the cosine theorem formula, and the formula is as follows:
[0105]
[0106] In one embodiment, the vulnerability detection method further includes:
[0107] Cluster the domain name information and fingerprint information in the vulnerability database to obtain clustered domain name information and clustered fingerprint information;
[0108] According to the vulnerability information of the vulnerability in the vulnerability database, obtain the vulnerability scanning file corresponding to the vulnerability information;
[0109] Create a correlation between clustered domain name information, clustered fingerprint information, and vulnerability information;
[0110] Based on the association relationship, a fingerprint library is created, and the fingerprint library includes vulnerability scanning files corresponding to the vulnerability information.
[0111] In one example, the vulnerability scanning file may include a corresponding vulnerability scanning plug-in and vulnerability scanning rules, and the domain name information and fingerprint information in the vulnerability library may be clustered, for example:
[0112]
[0113] Among them, Host: vulrange.com represents the domain name of the website, and the domain name is xxx.com. For example, the domain name of Baidu is www.baidu.com.
[0114] After clustering, it is convenient for subsequent similarity detection. The fingerprint of the website and the domain name can be associated. By default, a domain name has only one fingerprint information.
[0115] Among them, url is an access address of the website, which can contain information such as protocol + domain name host + port + path, etc. ip can access the address of the server, and the domain name can be converted into ip, and then access the address of the server.
[0116] Among them, DokuWiki+php+ip means that these three pieces of information are part of the acquired fingerprint information, and the web fingerprint information can be composed of multiple sub-information.
[0117] Among them, 110002, 1100020331 / 1100020335 in the plug-in and rule are the customized plug-in ID and rule ID.
[0118] Summarize the vulnerability scanning plug-ins of all the vulnerabilities of the domain name. For example, if vulrange.com scans out SQL injection vulnerabilities and XSS vulnerabilities (Cross Site Script, the most common vulnerabilities in web security), the plug-in IDs corresponding to the host are: 110002, 105003. Associate the fingerprint of the domain name with the CVE vulnerability (Common Vulnerabilities & Exposures). For example, if vulrange.com is PHP (Hypertext Preprocessor, a general open source scripting language), then associate all PHP-related CVE vulnerability numbers and finally generate a fingerprint library.
[0119] In an example, each piece of fingerprint information in the fingerprint library may be shown in the following json format:
[0120]
[0121] In one embodiment, the step of “obtaining the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library” may include:
[0122] Extract the target website fingerprint information and the characteristic information of the website fingerprint information in the fingerprint library to obtain the fingerprint characteristic information of the website to be detected and the website fingerprint characteristic information;
[0123] Calculate the similarity between the fingerprint feature information of the website to be detected and the website fingerprint feature information, and obtain the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library.
[0124] 204. Based on the similarity, determine a target website similar to the website to be detected from the websites in the fingerprint library.
[0125] The target website is a website in the fingerprint database whose similarity with the website to be detected reaches a preset condition. For example, the target website is a website in the fingerprint database whose similarity with the website to be detected reaches a threshold.
[0126] In one embodiment, the step of “determining a target website similar to the website to be detected from the websites in the fingerprint library based on the similarity” may include:
[0127] Based on the similarity, a target website whose similarity with the website to be detected reaches a threshold is determined from the fingerprint library.
[0128] In one example, if Figure 2bAs shown, the extracted target website fingerprint information of the website to be detected is input into the recommendation engine, and the similarity is calculated with the website fingerprint in the fingerprint library. Then, based on the similarity calculation result, the target website similar to the website to be detected is determined from the fingerprint library, and finally the vulnerability scanning file corresponding to the target website is output for vulnerability detection of the website to be detected.
[0129] In one example, after obtaining the similarity between the website to be detected and website B, a preset threshold value, such as 90%, can be used. If the similarity between the website to be detected and website B is greater than the threshold value, the two websites are considered to be highly similar, that is, the vulnerability scanning file of website B (i.e., the plug-in and rules used by website B for vulnerability scanning) can be recommended to the website to be detected and output. The size of the threshold value can be dynamically adjusted according to the actual test results.
[0130] In one embodiment, the vulnerability detection method further includes:
[0131] If the similarity between the website fingerprint information in the fingerprint database and the website to be detected does not reach the threshold, the preset vulnerability scanning file is obtained;
[0132] Based on the preset vulnerability scanning file, vulnerability detection is performed on the website to be detected.
[0133] In one example, if Figure 2b As shown, if the target website fingerprint information of the website to be detected and the fingerprint information of the website in the fingerprint library do not reach the threshold, the website to be detected can be subjected to vulnerability detection according to the preset plug-in and rules included in the preset vulnerability scanning file.
[0134] 205. Obtain a vulnerability scanning file corresponding to the target website, and perform vulnerability detection on the website to be detected based on the vulnerability scanning file.
[0135] Among them, vulnerability detection refers to the security detection of the website to be tested, to find out the defects in the specific implementation of hardware, software, protocol or system security policy, so as to ensure that attackers cannot access or damage the system without authorization.
[0136] In one embodiment, the step of “performing vulnerability detection on the website to be detected based on the vulnerability scanning file” may include:
[0137] Based on the vulnerability scanning file, an operation execution request with preset rules is sent to the network device;
[0138] Receive the request response information returned by the network device based on the operation execution request, and perform vulnerability detection on the request response information. The request response information is obtained by the network device responding based on preset rules.
[0139] In one embodiment, the operation execution request includes a preset request execution time, and the vulnerability detection method further includes:
[0140] Real-time detection of actual response time of network devices;
[0141] If the actual response time is within the preset request execution time range, it is determined that the website to be tested has a vulnerability.
[0142] In one embodiment, the information corresponding to the target website fingerprint information of the target website can be weighted based on the importance of the website fingerprint information. For example, assuming that the cms information and application server information of the website are more important feature information than other information, for example, both are structs frameworks, then all struts-related vulnerability plug-ins should be provided. Therefore, it is necessary to weight the information of cms information, application server and other dimensions.
[0143] In one example, if Figure 2b As shown in the figure, vulnerability detection can be performed on the website to be detected according to the recommended scanning plug-in and rules, and the results of vulnerability detection can be reported. In addition, the results of vulnerability detection can also be reported to the recommendation engine, and the relationship between fingerprint information and plug-in corresponding results can be stored. On the other hand, full-scale deep vulnerability scanning can be performed regularly on the target vulnerability scanning type tasks every week, and the results of vulnerability scanning can be reported to the recommendation engine for correction of the recommendation engine.
[0144] In the vulnerability scanning type page, the present application can add a target selection control corresponding to the target vulnerability scanning type, and in response to the trigger operation on the target control, determine that the vulnerability scanning type of the website to be detected is the target scanning type, and then extract the target website fingerprint information of the website to be detected, and then compare the website fingerprint information in the fingerprint library. Finally, a reasonable scanning strategy can be given. For example, based on the comparison result of the website fingerprint information of the website to be detected and the website fingerprint information in the fingerprint library, a reasonable vulnerability scanning file is determined to ensure that as many vulnerabilities as possible are scanned within a certain period of time.
[0145] Among them, a fingerprint library can be built based on the historical fingerprint extraction results of each website and the vulnerability detection results of each website. Then, the historical scanning instructions can be used to dynamically recommend scanning strategies, which can significantly reduce the scanning time. At the same time, the accuracy of vulnerability detection is also high, which effectively saves the resources of the scanning system.
[0146] From the above, it can be seen that the embodiment of the present application can determine the target website similar to the website to be detected from the fingerprint library based on the extracted target website fingerprint information of the website to be detected and the similarity between the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a shorter time, and can improve the efficiency of vulnerability detection.
[0147] Based on the above introduction, the following examples will be used to further illustrate the vulnerability detection method of this application. Figure 3 , a vulnerability detection method, the specific process can be as follows:
[0148] 301. Display a vulnerability scan type page of the website to be detected, wherein the vulnerability scan type page includes a selection control for the vulnerability scan type.
[0149] Among them, the vulnerability scanning type page can also include a website information adding control, and the website information of the website to be detected can be added by triggering the website information adding control to assist in vulnerability detection of the website to be detected.
[0150] In one example, a vulnerability scanning task for a website to be detected can be received, and then a vulnerability scanning type page for the website to be detected can be displayed, so as to select the type mode of vulnerability scanning for the website to be detected by triggering a selection control in the vulnerability scanning type page. For example, the selection control corresponding to the target vulnerability scanning type can be triggered to determine that the vulnerability scanning type of the website to be detected is the target vulnerability scanning type.
[0151] 302. The server determines a target vulnerability scan type of the website to be detected in response to a selection operation on a target selection control.
[0152] The server may also determine the vulnerability scanning type of the website to be detected in response to selection operations on other selection controls.
[0153] In one example, the server can determine the target vulnerability scan type of the website to be detected in response to a selection operation on the target selection control, and then extract fingerprint information of the website to be detected based on the target vulnerability scan type to obtain the target website fingerprint information. Thereafter, the target website fingerprint information is input into the recommendation engine, and a similarity is calculated with the website fingerprint information in the fingerprint library to determine a target website similar to the website to be detected from the fingerprint library, and output the vulnerability scanning file corresponding to the target website, such as a vulnerability scanning plug-in and vulnerability scanning rules. Finally, based on the vulnerability scanning plug-in and vulnerability scanning rules, vulnerability detection is performed on the website to be detected.
[0154] In one example, the server can determine the vulnerability scan type of the website to be detected in response to the selection operation on other selection controls, and then determine the specific vulnerability scan file for performing vulnerability detection on the website to be detected based on the vulnerability scan type, and finally perform vulnerability detection on the website to be detected based on the specific vulnerability scan file.
[0155] 303. The server extracts fingerprints of the website to be detected based on the target vulnerability scanning type, and obtains target website fingerprint information of the website to be detected.
[0156] The target website fingerprint information may be composed of multiple sub-information of the websites to be detected, for example, Figure 2c The web fingerprint information shown may be composed of sub-information such as CMS information, front-end technology, web middleware, back-end server, back-end development language, operating system information, CDN information, WAF information, IP and domain name information, and port information.
[0157] In one example, an open source web fingerprint acquisition tool can be used to acquire target website fingerprint information of the website to be detected. For example, a fingerprint extraction interface corresponding to the target vulnerability scanning type can be determined and the fingerprint extraction interface can be called to acquire the target website fingerprint information of the website to be detected.
[0158] In one example, based on the target vulnerability scan type and the address information of the website to be detected, a fingerprint extraction message can be sent to the network device corresponding to the website to be detected, and then the target website fingerprint information of the website to be detected can be generated according to the fingerprint extraction response message returned by the received network device based on the fingerprint extraction message.
[0159] 304. The server obtains the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, where the fingerprint library includes the website fingerprint information of at least one website.
[0160] Among them, the website fingerprint information and the domain name of the website can be associated in the fingerprint library, and it can be assumed that one domain name has one kind of website fingerprint information.
[0161] In an example, the similarity between the target website fingerprint information of the website to be detected and the website fingerprint information in the fingerprint library can be explained by taking the target website fingerprint information and the website fingerprint information of any website B in the fingerprint library as FingerpirntA and FingerpirntB respectively, ['wordpress', jquery', nginx','','php','linux','','','',''] is the fingerprint information of FingerpirntA, FingerpirntA can be encoded and escaped to obtain FingerpirntA = [1,1,2,0,1,1,0,0,0,0], and FingerpirntB can be encoded and escaped to obtain FingerpirntB = [1,0,2,0,1,1,0,0,0,0], and then the similarity of the website fingerprint information of the website to be detected and the website B in the fingerprint library can be calculated according to the cosine theorem. The cosine theorem formula is as follows:
[0162]
[0163] Finally, assuming that the similarity between the website to be detected and website B in the fingerprint library is calculated to be 93.27% according to the formula, the similarity between the website to be detected and website B in the fingerprint library can be determined.
[0164] 305. Based on the similarity, the server determines a target website similar to the website to be detected from the websites in the fingerprint library.
[0165] In one example, the similarity between the website to be detected and website B in the fingerprint library has been determined by calculation, and the similarity is 93.27%. If the preset similarity threshold is 90%, it can be determined that website B is a target website in the fingerprint library that is similar to the website to be detected.
[0166] In one example, when the similarity between the website to be detected and each website in the fingerprint library does not reach a similarity threshold, a preset vulnerability scanning file can be obtained, and vulnerability detection is performed on the website to be detected based on the preset vulnerability scanning file.
[0167] 306. The server obtains a vulnerability scanning file corresponding to the target website, and performs vulnerability detection on the website to be detected based on the vulnerability scanning file.
[0168] In one example, a vulnerability scanning file may include a vulnerability scanning plug-in and vulnerability scanning rules, and then vulnerability detection may be performed on the website to be detected based on the vulnerability scanning plug-in and vulnerability scanning rules corresponding to the target website. For example, a detection packet (http request) with specific rules may be sent to the network device corresponding to the website to be detected, and then the rules may be matched according to the return of the response packet. A successful match indicates a vulnerability. For example, there is a time-based blind injection rule for SQL injection vulnerabilities, which is to send an http request with a sleep 3s command, and then determine whether there is a vulnerability by judging whether the network device waits for 3s before returning.
[0169] The embodiments of the present application can be used for specific scanning scenarios of all web vulnerability scanners. For example, when selecting a scanning mode, you can select a quick scanning type or a target vulnerability scanning type, etc. When the scanning mode is selected as the quick scanning type, you can sort and recommend vulnerability scanning plug-ins with top rules according to the hit rate of the vulnerability scanning rules; when the scanning mode is selected as the target vulnerability scanning type, you can compare the fingerprint information of the target website with the fingerprint information in the existing fingerprint library, and then recommend strongly related vulnerability scanning plug-ins and vulnerability scanning rules, so as to perform vulnerability detection on the target website based on the vulnerability scanning plug-in and vulnerability scanning rules.
[0170] Among them, modes such as quick scan type and target vulnerability scan type can be applied to web vulnerability scanners, whether they are commercial scanners or enterprise intranet security scanners.
[0171] From the above, it can be seen that the embodiment of the present application can determine the target website similar to the website to be detected from the fingerprint library based on the extracted target website fingerprint information of the website to be detected and the similarity between the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a shorter time, and can improve the efficiency of vulnerability detection.
[0172] In order to better implement the above method, accordingly, the embodiment of the present application also provides a vulnerability detection device, wherein the vulnerability detection device can be specifically integrated in the server, referring to Figure 4a The vulnerability detection device may include a scan type determination unit 401, an extraction unit 402, a first acquisition unit 403, a website determination unit 404, a second acquisition unit 405 and a first vulnerability detection unit 406, as follows:
[0173] (1) Scan type determination unit 401;
[0174] The scan type determination unit 401 is used to determine the target vulnerability scan type of the website to be detected.
[0175] In one embodiment, if Figure 4b As shown, the scanning similarity determination unit 401 includes:
[0176] The page display subunit 4011 is used to display the vulnerability scanning type page of the website to be detected, and the vulnerability scanning type page includes a selection control of the vulnerability scanning type;
[0177] The scan type determination subunit 4012 is used to determine the target vulnerability scan type of the website to be detected in response to the selection operation on the target selection control.
[0178] (2) Extraction unit 402;
[0179] The extraction unit 402 is used to extract the fingerprint of the website to be detected based on the target vulnerability scanning type, and obtain the target website fingerprint information of the website to be detected.
[0180] In one embodiment, if Figure 4c As shown, the extraction unit 402 includes:
[0181] The interface determination subunit 4021 is used to determine the fingerprint extraction interface corresponding to the target vulnerability scanning type;
[0182] The interface calling subunit 4022 is used to call the fingerprint extraction interface corresponding to the website to be detected to obtain the target fingerprint information of the website to be detected.
[0183] In one embodiment, if Figure 4c As shown, the extraction unit 402 includes:
[0184] The first sending subunit 4023 is used to send a fingerprint extraction message to a network device corresponding to the website to be detected based on the target vulnerability scanning type and the address information of the website to be detected;
[0185] The acquisition subunit 4024 is used to acquire the fingerprint extraction response message returned by the network device based on the fingerprint extraction message;
[0186] The fingerprint generating subunit 4025 is used to generate the target website fingerprint information of the website to be detected according to the fingerprint extraction response message.
[0187] In one embodiment, the fingerprint generation subunit 4025 is further used to match the response header and the response body according to a preset fingerprint matching rule to obtain a matching result; based on the matching result, determine the target website fingerprint information of the website to be detected.
[0188] (3) a first acquisition unit 403;
[0189] The first acquisition unit 403 is used to acquire the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, where the fingerprint library includes the website fingerprint information of at least one website.
[0190] In one embodiment, if Figure 4d As shown, the first acquisition unit 403 includes:
[0191] The encoding subunit 4031 is used to encode the target website fingerprint information and the website fingerprint information in the fingerprint library to obtain the encoded target website fingerprint information and the encoded website fingerprint information;
[0192] The calculation subunit 4032 is used to calculate the similarity between the encoded target website fingerprint information and the encoded website fingerprint information, and obtain the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library.
[0193] (4) website determination unit 404;
[0194] The website determination unit 404 is used to determine a target website similar to the website to be detected from the websites in the fingerprint library based on the similarity.
[0195] In one embodiment, if Figure 4e As shown, the website determination unit 404 includes:
[0196] The website determination subunit 4041 is used to determine, based on the similarity, a target website whose similarity with the website to be detected reaches a threshold from the fingerprint database.
[0197] (5) a second acquisition unit 405;
[0198] The second acquisition unit 405 is used to acquire the vulnerability scanning file corresponding to the target website.
[0199] (6) a first vulnerability detection unit 406;
[0200] The first vulnerability detection unit 406 is used to perform vulnerability detection on the website to be detected based on the vulnerability scanning file.
[0201] In one embodiment, if Figure 4f As shown, the first vulnerability detection unit 406 includes:
[0202] The second sending subunit 4061 is used to send an operation execution request carrying a preset rule to the network device based on the vulnerability scanning file;
[0203] The receiving subunit 4062 is used to receive the request response information returned by the network device based on the operation execution request, and perform vulnerability detection on the request response information. The request response information is obtained by the network device in response based on preset rules.
[0204] In one embodiment, the vulnerability detection device further includes:
[0205] The time detection unit 407 is used to detect the actual response time of the network device in real time;
[0206] The vulnerability determination unit 408 is used to determine that a vulnerability exists in the website to be detected if the actual response time is within a preset request execution time range.
[0207] In one embodiment, the vulnerability detection device further includes:
[0208] The clustering unit 409 is used to cluster the domain name information and fingerprint information in the vulnerability database to obtain clustered domain name information and clustered fingerprint information;
[0209] The third acquisition unit 410 is used to acquire a vulnerability scanning file corresponding to the vulnerability information according to the vulnerability information of the vulnerability in the vulnerability database;
[0210] A relationship creation unit 411, used to create an association relationship between clustered domain name information, clustered fingerprint information, and vulnerability information;
[0211] The fingerprint library creation unit 412 is used to create a fingerprint library based on the association relationship, and the fingerprint library includes a vulnerability scanning file corresponding to the vulnerability information.
[0212] In one embodiment, a vulnerability detection device includes:
[0213] The fourth acquisition unit 413 is used to acquire a preset vulnerability scanning file if the similarity between the website fingerprint information in the fingerprint library and the website to be detected does not reach a threshold;
[0214] The second vulnerability detection unit 414 is used to perform vulnerability detection on the website to be detected based on a preset vulnerability scanning file.
[0215] As can be seen from the above, the scanning type determination unit 401 of the vulnerability detection device of the embodiment of the present application determines the target vulnerability scanning type of the website to be detected; then, the extraction unit 402 extracts fingerprints of the website to be detected based on the target vulnerability scanning type to obtain the target website fingerprint information of the website to be detected; the first acquisition unit 403 obtains the target website fingerprint information and the similarity between the website fingerprint information in the fingerprint library, and the fingerprint library includes the website fingerprint information of at least one website; the website determination unit 404 determines the target website similar to the website to be detected from the website in the fingerprint library based on the similarity; the second acquisition unit 405 obtains the vulnerability scanning file corresponding to the target website; the first vulnerability detection unit 406 performs vulnerability detection on the website to be detected based on the vulnerability scanning file. This solution can determine the target website similar to the website to be detected from the fingerprint library according to the extracted target website fingerprint information of the website to be detected and the similarity between the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a relatively short time, and can improve the efficiency of vulnerability detection.
[0216] In addition, the embodiment of the present application also provides a computer device, which can be a terminal or a server. Figure 5 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0217] The computer device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0218] in:
[0219] The processor 501 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby performing overall detection of the computer device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0220] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0221] The computer device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0222] The computer device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0223] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby realizing various functions, as follows:
[0224] Determine the target vulnerability scanning type of the website to be detected; based on the target vulnerability scanning type, perform fingerprint extraction on the website to be detected to obtain the target website fingerprint information of the website to be detected; obtain the target website fingerprint information and the similarity between the website fingerprint information and the website fingerprint information in the fingerprint library, the fingerprint library includes the website fingerprint information of at least one website; based on the similarity, determine the target website similar to the website to be detected from the website in the fingerprint library; obtain the vulnerability scanning file corresponding to the target website; based on the vulnerability scanning file, perform vulnerability detection on the website to be detected.
[0225] From the above, it can be seen that the embodiment of the present application can determine the target website similar to the website to be detected from the fingerprint library based on the extracted target website fingerprint information of the website to be detected and the similarity between the website fingerprint information in the fingerprint library, and then perform vulnerability detection on the website to be detected based on the vulnerability scanning file corresponding to the target website, which can ensure that as many vulnerabilities as possible are detected in a shorter time, and can improve the efficiency of vulnerability detection.
[0226] A person skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a storage medium and loaded and executed by a processor.
[0227] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any vulnerability detection method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0228] Determine the target vulnerability scanning type of the website to be detected; based on the target vulnerability scanning type, perform fingerprint extraction on the website to be detected to obtain the target website fingerprint information of the website to be detected; obtain the target website fingerprint information and the similarity between the website fingerprint information and the website fingerprint information in the fingerprint library, the fingerprint library includes the website fingerprint information of at least one website; based on the similarity, determine the target website similar to the website to be detected from the website in the fingerprint library; obtain the vulnerability scanning file corresponding to the target website; based on the vulnerability scanning file, perform vulnerability detection on the website to be detected.
[0229] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0230] Since the instructions stored in the storage medium can execute the steps in any vulnerability detection method provided in the embodiments of the present application, the beneficial effects that can be achieved by any vulnerability detection method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0231] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the vulnerability detection method provided in the above invention content and embodiments.
[0232] The above is a detailed introduction to a vulnerability detection method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A vulnerability detection method, characterized in that: include: Determine a target vulnerability scan type for the website to be detected, wherein the target vulnerability scan type includes at least one of a quick scan type and a deep scan type; Based on the target vulnerability scanning type, fingerprint extraction is performed on the website to be detected to obtain target website fingerprint information of the website to be detected; Obtaining the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, wherein the fingerprint library includes the website fingerprint information of at least one website; Based on the similarity, determining a target website similar to the website to be detected from the websites in the fingerprint library; Obtaining a vulnerability scanning file corresponding to the target website, wherein the vulnerability scanning file is a plug-in and rules used by the target website to perform vulnerability scanning; Based on the vulnerability scanning file, performing vulnerability detection on the website to be detected; Cluster the domain name information and fingerprint information in the vulnerability database to obtain clustered domain name information and clustered fingerprint information; According to the vulnerability information of the vulnerability in the vulnerability database, obtaining a vulnerability scanning file corresponding to the vulnerability information; Creating an association relationship between the clustered domain name information, the clustered fingerprint information, and the vulnerability information; Based on the association relationship, the fingerprint library is created, and the fingerprint library includes the vulnerability scanning file corresponding to the vulnerability information.
2. The method according to claim 1, characterized in that Determining the target vulnerability scanning type of the website to be detected includes: Displaying a vulnerability scan type page of the website to be detected, wherein the vulnerability scan type page includes a selection control for the vulnerability scan type; In response to a selection operation on a target selection control, a target vulnerability scanning type of the website to be detected is determined.
3. The method according to claim 1, characterized in that The step of extracting fingerprints from the website to be detected based on the target vulnerability scanning type to obtain target website fingerprint information of the website to be detected includes: Determine the fingerprint extraction interface corresponding to the target vulnerability scanning type; The fingerprint extraction interface corresponding to the website to be detected is called to obtain the target website fingerprint information of the website to be detected.
4. The method according to claim 1, characterized in that: The step of extracting fingerprints from the website to be detected based on the target vulnerability scanning type to obtain target website fingerprint information of the website to be detected includes: Based on the target vulnerability scanning type and the address information of the website to be detected, sending a fingerprint extraction message to a network device corresponding to the website to be detected; Obtaining a fingerprint extraction response message returned by the network device based on the fingerprint extraction message; The target website fingerprint information of the website to be detected is generated according to the fingerprint extraction response message.
5. The method according to claim 4, characterized in that The fingerprint extraction response message includes a message response header and a message response body; The step of generating target website fingerprint information of the website to be detected according to the fingerprint extraction response message includes: Matching the response header and the response body according to a preset fingerprint matching rule to obtain a matching result; Based on the matching result, target website fingerprint information of the website to be detected is determined.
6. The method according to claim 4, characterized in that The step of performing vulnerability detection on the website to be detected based on the vulnerability scanning file includes: Based on the vulnerability scanning file, sending an operation execution request carrying preset rules to the network device; Receive request response information returned by the network device based on the operation execution request, and perform vulnerability detection on the request response information, where the request response information is obtained by the network device responding based on the preset rule.
7. The method according to claim 6, characterized in that The operation execution request includes a preset request execution time, and the method further includes: Real-time detection of actual response time of the network device; If the actual response time is within the preset request execution time range, it is determined that the website to be detected has a vulnerability.
8. The method according to claim 1, characterized in that The obtaining of the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library includes: Encoding the target website fingerprint information and the website fingerprint information in the fingerprint library to obtain encoded target website fingerprint information and encoded website fingerprint information; The similarity between the encoded target website fingerprint information and the encoded website fingerprint information is calculated to obtain the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library.
9. The method according to claim 1, characterized in that: The determining, based on the similarity, a target website similar to the website to be detected from the websites in the fingerprint library includes: Based on the similarity, a target website whose similarity with the website to be detected reaches a threshold is determined from the fingerprint library.
10. The method according to claim 1, characterized in that After obtaining the target website fingerprint information and the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, the method further includes: If the similarity between the website fingerprint information in the fingerprint database and the website to be detected does not reach a threshold, obtaining a preset vulnerability scanning file; Based on the preset vulnerability scanning file, vulnerability detection is performed on the website to be detected.
11. A vulnerability detection device, characterized in that: include: A scanning type determination unit, used to determine a target vulnerability scanning type of a website to be detected, wherein the target vulnerability scanning type includes at least one of a quick scanning type and a deep scanning type; An extraction unit, configured to extract fingerprints of the website to be detected based on the target vulnerability scanning type, and obtain target website fingerprint information of the website to be detected; A first acquisition unit is used to acquire the similarity between the target website fingerprint information and the website fingerprint information in the fingerprint library, wherein the fingerprint library includes the website fingerprint information of at least one website; A website determination unit, configured to determine a target website similar to the website to be detected from the websites in the fingerprint library based on the similarity; A second acquisition unit is used to acquire a vulnerability scanning file corresponding to the target website, wherein the vulnerability scanning file is a plug-in and rules used by the target website to perform vulnerability scanning; A first vulnerability detection unit, configured to perform vulnerability detection on the website to be detected based on the vulnerability scanning file; A clustering unit is used to cluster the domain name information and fingerprint information in the vulnerability database to obtain clustered domain name information and clustered fingerprint information; A third acquisition unit is used to acquire a vulnerability scanning file corresponding to the vulnerability information according to the vulnerability information of the vulnerability in the vulnerability database; A relationship creation unit, used to create an association relationship between the clustered domain name information, the clustered fingerprint information, and the vulnerability information; The fingerprint library creation unit is used to create the fingerprint library based on the association relationship, and the fingerprint library includes the vulnerability scanning file corresponding to the vulnerability information.
12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps in the vulnerability detection method according to any one of claims 1 to 10 are implemented.
13. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the vulnerability detection method according to any one of claims 1 to 10.
