System and method for detecting springboot actor vulnerabilities
By using scanning, crawling, parsing and detection report modules in the springboot actuator vulnerability detection system, the problem of low detection efficiency and high manual operations in the existing technology is solved, and efficient use of sensitive information is achieved. Extraction and analysis.
Patent Information
- Application Number
- CN202411335806.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-11-26
AI Technical Summary
The existing technology is difficult to automatically detect and analyze springboot actuator vulnerabilities, especially in crawling and parsing sensitive files, which require manual login and manual download of files for analysis.
Provide a detection system including scanning module, crawler module, parsing module and detection report module. By receiving a target IP address list, detecting network accessibility, identifying open ports, crawling content under the actuator path, downloading and parsing Heapdump files , extract sensitive information and generate vulnerability detection reports.
It realizes automatic detection and analysis of springboot actuator vulnerabilities, improves detection efficiency, reduces the cost of manual operations, can automatically extract and analyze sensitive information, and generate detailed vulnerability detection reports.
Smart Images

Figure CN119030784A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vulnerability detection technology, and in particular to a detection system, method, electronic device and storage medium for a springboot actuator vulnerability. Background Art
[0002] Actuator is a functional module provided by Spring Boot to introspect and monitor the application system. With the help of actuator, developers can easily view and count some monitoring indicators of the application system. When the actuator is enabled, if the relevant permission control is not done well, illegal users can obtain monitoring information in the application system by accessing the default actuator endpoint.
[0003] Currently, vulnerability detection does not have the ability to automatically crawl and download sensitive files on springboot's Web services, making it difficult to parse sensitive files and extract sensitive information. Usually, it is necessary to manually log in to the web page, manually download sensitive files, and then analyze the files.
[0004] To solve the above problems, a detection system, method, electronic device and storage medium for springboot actuator vulnerabilities are proposed herein. Summary of the invention
[0005] The embodiments of the present disclosure aim to solve at least one of the technical problems existing in the prior art, and provide a detection system, method, electronic device and storage medium for springboot actuator vulnerabilities.
[0006] In a first aspect of the present disclosure, a detection system for a springboot actuator vulnerability is provided, including:
[0007] A scanning module is used to receive a target IP address list, detect the network reachability of each IP address in the target IP address list, record the open port number, identify the service running under the open port, and classify the service;
[0008] The crawler module is used to crawl the web pages under the actuator path and download the files to the local computer when the Heapdump binary file is detected;
[0009] Parsing module, used to parse the downloaded Heapdump file and extract sensitive information from it;
[0010] The detection report module is used to generate a springboot actuator vulnerability detection report based on the extracted sensitive information.
[0011] A second aspect of the present disclosure provides a method for detecting a springboot actuator vulnerability, including:
[0012] Inputting a target IP address list into the scanning module, and detecting the network reachability of each IP address in the target IP address list;
[0013] If there is an IP address that is reachable on the network, detect all ports of the IP address and record the open port numbers;
[0014] Classify services by identifying services running under open ports;
[0015] If the service is classified as a springboot Web service, determine whether the actuator path of the service can be accessed;
[0016] If the access is successful, use the crawler module to crawl the Web page under the actuator path;
[0017] If the crawled content contains a Heapdump binary file, download the Heapdump file to the local computer;
[0018] The downloaded Heapdump file is parsed by a parsing module to extract sensitive information from the file;
[0019] The detection report module generates a springboot actuator vulnerability detection report based on the extracted sensitive information.
[0020] In combination with the second aspect, the detecting the network reachability of each IP address in the IP address list includes sending an ICMP request packet to each IP address through Ping scanning, and determining the network reachability of the IP address according to the response information.
[0021] In combination with the second aspect, if there is a network-reachable IP address, detecting all ports of the IP address includes scanning all ports of the target IP address through TCP SYN scanning and / or TCP Connect scanning, and recording them in order from 1 to 65535.
[0022] In combination with the second aspect, the service classification by identifying the services running under the open port includes sending a preset data packet to the open port, analyzing the response information by calling the Nmap database, and identifying the type of the running service.
[0023] In combination with the second aspect, if the service is classified as a springboot Web class service, determining whether the actuator path of the service can be accessed includes sending an HTTP request packet to the actuator path, and confirming whether it can be accessed by checking whether the returned HTTP status code is 200.
[0024] In combination with the second aspect, the downloaded Heapdump file is parsed and processed, and the sensitive information in the file is extracted, including converting the Heapdump file into a UTF-8 encoded string format, and extracting the sensitive information through keyword retrieval, wherein the keywords include password and token.
[0025] In combination with the second aspect, the keyword retrieval and extraction of sensitive information includes training the keyword retrieval and parsing process through machine learning.
[0026] According to a third aspect of the present disclosure, an electronic device is provided, including:
[0027] one or more processors;
[0028] A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement any of the above-mentioned detection methods for the springbootactuator vulnerability.
[0029] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned detection methods for springboot actuator vulnerabilities can be implemented.
[0030] The present invention provides a detection system, method, electronic device and storage medium for springboot actuator vulnerabilities. The scanning module receives the input target IP address list, detects the network accessibility of each IP and its open port, identifies and classifies the service type under the port; if it is a springboot Web service, further determines whether the actuator path can be accessed; when the actuator path is accessible, the crawler module is used to crawl the content under the path and download the Heapdump file. The Heapdump file is then analyzed by the parsing module to extract sensitive information such as passwords and tokens, and finally the detection report module generates a report containing vulnerability information, thereby realizing automatic detection and analysis of springboot actuator vulnerabilities, improving detection efficiency and reducing the cost of manual operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a structural diagram of a detection system for springboot actuator vulnerabilities according to an embodiment of the present disclosure;
[0032] Figure 2 It is a flowchart of a detection method for a springboot actuator vulnerability according to an embodiment of the present disclosure;
[0033] Figure 3 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure.
[0035] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "said" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0036] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0037] like Figure 1 The figure is a schematic diagram of the structure of the detection system for the springboot actuator vulnerability according to the embodiment of the present disclosure. It includes:
[0038] The scanning module 110 is used to receive a target IP address list, detect the network reachability of each IP address in the target IP address list, record the open port number, identify the service running under the open port, and classify the service;
[0039] The crawler module 120 is used to crawl the Web pages under the actuator path and download the file to the local computer when the Heapdump binary file is detected;
[0040] The parsing module 130 is used to parse the downloaded Heapdump file and extract sensitive information therein;
[0041] The detection report module 140 is used to generate a springboot actuator vulnerability detection report according to the extracted sensitive information.
[0042] Specifically, the scanning module 110 is used to receive a target IP address list, that is, a group of IP addresses input by the user or recognized by the system, which represent servers or devices where springboot services may exist. The module detects the network accessibility of each IP and determines whether these servers can be accessed through the network.
[0043] The network reachability detection is implemented through ICMP Ping request or other network protocols (this embodiment is not specifically limited here). If the IP address is accessible in the network, the module will further detect all open ports under the IP address, usually performing a full port scan (1-65535 port range).
[0044] After recording the open port numbers, the module identifies the services running on each port, including HTTP, HTTPS, FTP, SSH and other protocols.
[0045] Based on the open ports and services, the scanning module categorizes these services, especially the springboot web class services, which have actuator interfaces for monitoring and managing applications.
[0046] The crawler module 120 crawls the web page of the actuator path (i.e., accesses and obtains the page content) when the springboot web class service is detected. The actuator path is the management endpoint provided by springboot and may expose some internal information of the system. If the crawler detects the existence of the Heapdump binary file, it downloads it to the local computer.
[0047] The crawler module generally uses HTTP requests and relies on crawler libraries in scripting languages such as Python (such as Scrapy, BeautifulSoup, etc.) to obtain the content of the target web page. Heapdump is a memory dump file of a Java program, which may contain sensitive information such as object instances, variables, and passwords. If such files are not properly protected, they may leak the internal state of the application.
[0048] The parsing module 130 analyzes and processes the downloaded Heapdump file. The Heapdump file is essentially a huge binary file that contains the memory data of the application when it is running. The parsing module converts this data into a readable format (such as UTF-8 encoded text) through tools or scripts and extracts sensitive information therein.
[0049] Sensitive information can be passwords, tokens, API keys, database connection information, etc. If such data is obtained by illegal users, it may cause security risks to the system.
[0050] The parsing module can use keyword matching and regular expression techniques, and may also use machine learning algorithms to automatically improve the accuracy of sensitive information detection.
[0051] The detection report module 140 is used to generate a detection report on the springboot actuator vulnerability based on the sensitive information extracted by the parsing module. The report lists in detail which IP addresses and ports have vulnerabilities, which sensitive information is discovered, and may provide recommended repair measures.
[0052] The report generated includes vulnerability description, risk level assessment, leaked sensitive data, and defense or patching suggestions. The generated report can provide detailed repair instructions for security teams or system administrators to quickly eliminate security risks.
[0053] Beneficial effects: These four modules form a complete vulnerability detection system. The scanning module is responsible for collecting and analyzing the target's network information; the crawler module is responsible for crawling and downloading potential vulnerability files; the parsing module analyzes sensitive information in the file; and the detection report module is responsible for outputting an actionable report. The entire system realizes the automatic detection and analysis of springbootactuator vulnerabilities, greatly reducing the need for manual intervention and improving security detection efficiency.
[0054] like Figure 2 The figure is a flow chart of a detection method for a springboot actuator vulnerability according to an embodiment of the present disclosure. It includes:
[0055] S201: Input a target IP address list to a scanning module, and detect the network reachability of each IP address in the target IP address list;
[0056] S202: If there is an IP address that is reachable on the network, detect all ports of the IP address and record the open port numbers;
[0057] S203: Classifying services by identifying services running under open ports;
[0058] S204: If the service is classified as a springboot Web service, determine whether the actuator path of the service is accessible;
[0059] S205: If the access is successful, use a crawler module to crawl the Web page under the actuator path;
[0060] S206: If the crawled content includes a Heapdump binary file, download the Heapdump file to a local computer;
[0061] S207: parsing the downloaded Heapdump file through a parsing module to extract sensitive information from the file;
[0062] S208: The detection report module generates a springboot actuator vulnerability detection report based on the extracted sensitive information.
[0063] Specifically, a target IP address list is input into the scanning module, and the network reachability of each IP address in the IP address list is detected.
[0064] The user or system administrator provides a list of multiple target IP addresses to the scanning module, and the system detects the reachability of these IP addresses one by one.
[0065] Network reachability refers to whether the target IP address can communicate under the current network conditions. This is usually achieved by sending ICMP requests (such as Ping). If the target address responds to the Ping request, it means that its network is reachable; otherwise, it may be unreachable due to firewalls, network problems, etc.
[0066] In addition to ICMP Ping, other protocols (such as TCP or UDP) can also be used to detect reachability. Reachability detection is a pre-step for vulnerability scanning to ensure that subsequent operations are targeted at valid IP addresses.
[0067] If there is an IP address that is reachable on the network, detect all ports of the IP address and record the open port numbers.
[0068] Once the IP address is confirmed to be reachable, the system will detect the status of all ports under the IP address and record the open port numbers.
[0069] Port scanning is a basic operation in network security, which helps to identify the services running on the target system. Generally, TCP SYN scanning or TCP Connect scanning is used to detect ports 1 to 65535 one by one.
[0070] Sometimes specific ports are used to expose springboot services (such as 8080, 443, etc.), but in order to ensure comprehensive coverage, a full port scan is performed. The record of open ports lays the foundation for the next step of service classification.
[0071] Classify services by identifying the services running under open ports.
[0072] The system categorizes open ports based on the services they run, such as HTTP, HTTPS, SSH, FTP, and other services.
[0073] Identifying services under open ports is usually done by sending specific request packets to the port and analyzing the response to identify the service type. Many scanning tools (such as Nmap) have built-in service identification functions that can accurately identify common services.
[0074] The key to this step is to accurately identify Web services, especially Springboot services. Service classification helps narrow the scope of vulnerability detection and further improve the efficiency of vulnerability detection.
[0075] If the service is classified as a springboot Web service, determine whether the actuator path of the service is accessible.
[0076] If it is detected that a Springboot Web service is running on an open port, the system will try to access the actuator path of the service.
[0077] The actuator path is the management and monitoring interface provided by the Spring Boot framework. If it is open and unprotected, it may expose sensitive system information. The way to access this path is to send an HTTP request. If the return status code is 200 (successful), it means that the path can be accessed.
[0078] The path and permission configuration of the actuator are sometimes open to the public by default, which is easy to be exploited. Attackers can obtain the system's operating status, thread information, and even memory data through this path.
[0079] If the access is successful, the crawler module is used to crawl the Web page under the actuator path.
[0080] If the actuator path can be successfully accessed, the system will start the crawler module to fully crawl the pages under the path and collect all the content on the page.
[0081] A crawler is an automated script that can traverse and download the content of a target website. In this step, the crawler accesses all possible exposed actuator sub-paths and tries to obtain the system's operating status, memory dumps (such as Heapdump), and other files.
[0082] The crawler module can identify and crawl sensitive files in web pages to ensure that no potential vulnerability files are missed, such as Heapdump or other log files.
[0083] If the crawled content includes a Heapdump binary file, the Heapdump file is downloaded to the local computer.
[0084] If a Heapdump binary file is found in the crawled web page, the system will download it locally for further analysis.
[0085] Heapdump is a memory dump file generated by the Java virtual machine during operation. It contains the current memory state of the application and may expose sensitive information such as user names, passwords, tokens, etc. Therefore, downloading the Heapdump file is an important step in detecting sensitive information.
[0086] Heapdump files can be very large, so performance and efficiency need to be ensured during downloading and parsing. At the same time, such files are often not encrypted or protected, and illegally obtaining these files may lead to serious security risks.
[0087] The downloaded Heapdump file is parsed by a parsing module to extract sensitive information from the file.
[0088] The downloaded Heapdump file will be analyzed by the parsing module to extract any sensitive information that may exist in it.
[0089] The parsing module converts the binary content of the Heapdump into a readable text format and uses keyword matching (such as password, token, session, etc.) to identify sensitive information. The parsing process can improve accuracy through regular expressions, string matching, and even machine learning techniques.
[0090] Heapdump files contain not only sensitive string information, but also some complex object instances that may leak system design and architecture. Parsing strategies can be customized for different application types.
[0091] The detection report module generates a springboot actuator vulnerability detection report based on the extracted sensitive information.
[0092] The system will generate a detailed vulnerability detection report based on the sensitive information extracted from the Heapdump file.
[0093] The detection report is the final output of vulnerability detection, which lists in detail the detected vulnerabilities, exposed sensitive information, affected endpoints and repair suggestions. This report can provide system administrators or security teams with a clear action guide to help them patch vulnerabilities and protect system security.
[0094] The detection report can also include an overall assessment of system security, priority sorting and risk level assessment, helping users to fix high-risk vulnerabilities first. The report can be generated in PDF, HTML, etc., which is easy to share and archive.
[0095] Beneficial effects: Through a series of automated steps, the complete chain from target IP detection, port identification, service classification, vulnerability identification, file crawling and sensitive information analysis to vulnerability detection report generation is completed. This method significantly improves the detection efficiency of springboot actuator vulnerabilities, reduces the complexity of manual operations, and realizes efficient extraction and analysis of sensitive information through automated tools, helping enterprises and users to promptly discover and repair potential security risks.
[0096] Furthermore, detecting the network reachability of each IP address in the IP address list includes sending an ICMP request packet to each IP address through Ping scanning, and determining the network reachability of the IP address according to the response information.
[0097] The system uses Ping scanning to test whether each target IP address can respond using ICMP request packets (Internet Control Message Protocol). This process is used to determine whether the target IP is reachable on the network.
[0098] ICMP Ping scan is one of the commonly used methods in network detection. It can quickly determine whether an IP address is online. Ping scan sends a request packet (ICMP Echo Request) and waits for a response packet (ICMP Echo Reply). If the target host is online and not blocked by a firewall, it will usually reply with a response packet.
[0099] In some highly secure network environments, ICMP request packets may be blocked by firewalls or other security mechanisms. Therefore, this process may require alternatives, such as TCP SYN scanning or UDP scanning, to ensure effective detection in various network environments.
[0100] If there is an IP address that is reachable on the network, detecting all ports of the IP address includes scanning all ports of the target IP address through TCP SYN scanning and / or TCP Connect scanning, and recording them in the order of 1 to 65535.
[0101] If the target IP address is reachable, the system will perform a full port scan on the IP address to check whether all ports on the IP are open. Common scanning techniques include TCP SYN scanning and TCP Connect scanning.
[0102] TCP SYN scanning is the most common port scanning method. It checks the port status by sending TCP SYN packets (synchronization request packets). If the target port responds to the SYN-ACK packet, it means that the port is open. TCP Connect scanning determines whether the port is open by trying to establish a complete TCP connection.
[0103] Full port scanning is a core step in network security, because some services may run on non-standard ports (for example, not using common ports 80, 443, etc.), full port scanning ensures that all potential vulnerability points can be detected. For large-scale scanning, the system can parallelize the processing to improve efficiency.
[0104] The service classification by identifying the services running under the open port includes sending a preset data packet to the open port, analyzing the response information by calling the Nmap database, and identifying the type of the running service.
[0105] The system sends specific preset data packets to the open port and calls the Nmap database to analyze the type of service running on the port.
[0106] Nmap is a widely used network detection and security auditing tool. It has powerful service identification capabilities and can determine the specific service running on the port (for example, HTTP, FTP, SSH, etc.) by analyzing the response packets of the port.
[0107] In addition to calling the Nmap database, the system can also integrate other service identification libraries or technologies, such as Masscan and other tools, to further improve the accuracy and efficiency of service identification. Correctly identifying the service type helps narrow the scope of vulnerability detection and perform relevant security scans for specific services.
[0108] If the service is classified as a springboot Web service, determining whether the actuator path of the service can be accessed includes sending an HTTP request packet to the actuator path, and confirming whether it can be accessed by checking whether the returned HTTP status code is 200.
[0109] If the open port is running a SpringBoot Web service, the system will send an HTTP request packet to its actuator path and determine whether the path can be successfully accessed based on the returned HTTP status code.
[0110] The actuator path is the management and monitoring interface of the SpringBoot application and is open by default. If the returned HTTP status code is 200 (indicating success), it means that the path is accessible and the system may expose sensitive information. If other status codes are returned (such as 401 Unauthorized, 403 Forbidden, etc.), it means that the actuator interface has been protected.
[0111] Accessing the actuator path can not only obtain monitoring data, but also expose the application's health information, memory dump, etc. In order to prevent unauthorized access, developers usually need to protect these paths through permission control, identity authentication, etc.
[0112] The downloaded Heapdump file is parsed and processed, and the sensitive information in the file is extracted, including converting the Heapdump file into a UTF-8 encoded string format, and extracting the sensitive information through keyword retrieval, wherein the keywords include password and token.
[0113] When the Heapdump file is downloaded locally, the system will parse it into a UTF-8 encoded string format and extract sensitive information through keyword retrieval (such as "password", "token", etc.).
[0114] Heapdump files are memory snapshots of Java applications, containing the current memory state of the application, which may leak a lot of sensitive information. By converting the binary format into a readable UTF-8 string, the system can easily retrieve its content and find potential security risks.
[0115] In addition to simple keyword matching, the system can further analyze complex data structures such as variable names and object instances, and even use semantic analysis techniques to identify hidden sensitive information. Keyword retrieval can be automated, but the keyword list needs to be adjusted according to the characteristics of the application.
[0116] The keyword search and extraction of sensitive information includes training the keyword search and parsing process through machine learning.
[0117] During the keyword search process, the system uses machine learning algorithms to optimize the accuracy of extracting sensitive information and improve the efficiency of the search and parsing process.
[0118] Machine learning can learn how to identify and extract sensitive information by training a large amount of sample data. It can improve the ability to recognize diverse data, such as passwords, tokens, personal information in different formats, etc. The trained model can improve retrieval accuracy and reduce false positives and false negatives in practical applications.
[0119] The training data of machine learning models should contain various possible sensitive information formats (such as plain text passwords, hashed passwords, API keys, etc.) so that the model can be widely adapted to different scenarios. The model can also be customized according to the needs of specific fields to further enhance the detection ability of sensitive information.
[0120] Beneficial effects: Through Ping scanning, port scanning, service classification, crawler download and keyword retrieval, springboot actuator vulnerabilities are automatically detected. Through these technologies, the system can effectively identify and process exposed Heapdump files, extract sensitive information and generate vulnerability reports. With the help of advanced tools and technologies such as Nmap database, Python crawler script and machine learning, the present invention improves the efficiency and accuracy of vulnerability detection, helping users to timely discover and repair potential security risks in the system.
[0121] The embodiments of the present disclosure provide a detection system, method, electronic device and storage medium for springboot actuator vulnerabilities. The scanning module receives the input target IP address list, detects the network accessibility of each IP and its open port, identifies and classifies the service type under the port; if it is a springboot Web service, further determines whether the actuator path can be accessed; when the actuator path is accessible, the crawler module is used to crawl the content under the path and download the Heapdump file. The Heapdump file is then analyzed by the parsing module to extract sensitive information such as passwords and tokens. Finally, the detection report module generates a report containing vulnerability information, thereby realizing automatic detection and analysis of springbootactuator vulnerabilities, improving detection efficiency and reducing the cost of manual operations.
[0122] The electronic device 300 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 300 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of the electronic device 300 and does not constitute a limitation of the electronic device 300. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0123] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0124] The memory 302 may be an internal storage unit of the electronic device 300, for example, a hard disk or memory of the electronic device 300. The memory 302 may also be an external storage device of the electronic device 300, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 300. Further, the memory 302 may also include both an internal storage unit of the electronic device 300 and an external storage device. The memory 302 is used to store the computer program 303 and other programs and data required by the electronic device. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0125] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present disclosure. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0128] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0132] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.
Claims
1. A detection system for springboot actuator vulnerabilities, It is characterized in that include: A scanning module is used to receive a target IP address list, detect the network reachability of each IP address in the target IP address list, record the open port number, identify the service running under the open port, and classify the service; The crawler module is used to crawl the web pages under the actuator path and download the files to the local computer when the Heapdump binary file is detected; Parsing module, used to parse the downloaded Heapdump file and extract sensitive information from it; The detection report module is used to generate a springboot actuator vulnerability detection report based on the extracted sensitive information.
2. A detection method for springboot actuator vulnerabilities, It is characterized in that include: Inputting a target IP address list into the scanning module, and detecting the network reachability of each IP address in the target IP address list; If there is an IP address that is reachable on the network, detect all ports of the IP address and record the open port numbers; Classify services by identifying services running under open ports; If the service is classified as a springboot Web service, determine whether the actuator path of the service can be accessed; If the access is successful, use the crawler module to crawl the Web page under the actuator path; If the crawled content contains a Heapdump binary file, download the Heapdump file to the local computer; The downloaded Heapdump file is parsed by a parsing module to extract sensitive information from the file; The detection report module generates a springboot actuator vulnerability detection report based on the extracted sensitive information.
3. The method according to claim 2, It is characterized in that The detecting the network reachability of each IP address in the IP address list includes sending an ICMP request packet to each IP address through Ping scanning, and judging the network reachability of the IP address according to the response information.
4. The method according to claim 2, It is characterized in that If there is an IP address that is reachable on the network, detecting all ports of the IP address includes scanning all ports of the target IP address through TCP SYN scanning and / or TCP Connect scanning, and recording them in the order of 1 to 65535.
5. The method according to claim 2, It is characterized in that The service classification by identifying the services running under the open port includes sending a preset data packet to the open port, analyzing the response information by calling the Nmap database, and identifying the type of the running service.
6. The method according to claim 2, It is characterized in that If the service is classified as a springboot Web service, determining whether the actuator path of the service can be accessed includes sending an HTTP request packet to the actuator path, and confirming whether it can be accessed by checking whether the returned HTTP status code is 200.
7. The method according to claim 2, It is characterized in that The downloaded Heapdump file is parsed and processed, and the sensitive information in the file is extracted, including converting the Heapdump file into a UTF-8 encoded string format, and extracting the sensitive information through keyword retrieval, wherein the keywords include password and token.
8. The method according to claim 7, It is characterized in that The keyword search and extraction of sensitive information includes training the keyword search and parsing process through machine learning.
9. An electronic device, It is characterized in that include: one or more processors; A storage unit, used to store one or more programs, when the one or more programs are executed by the one or more processors, can enable the one or more processors to implement the detection method for the springboot actuator vulnerability according to any one of claims 2 to 8.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for detecting a springboot actuator vulnerability according to any one of claims 2 to 8 can be implemented.
