springboot actuator is leaking internals at ██████████
The Spring Boot Actuator endpoints were publicly accessible without authentication, exposing internal configuration, environment details, and a downloadable heap dump. An attacker could use this information to learn about the system's internals and potentially extract sensitive data from the heap dump.
- Triaged in 2 hours
- Fixed in 3 days
- Disclosed after 38 days
Proof of Concept
If you go to https://█████████/actuator you'll get a complete overview of all the endpoints that are accessable (Suggestion: Use a Firefox Browser if possible, its json representation is well formed and the links are clickable )
██████████
Impact
Information Disclosure
- https://████/actuator/beans
Displays a complete list of all the Spring beans in your application.
- https://██████████/actuator/caches
Exposes available caches. For ███ it is empty
- https://███████/actuator/health
The actual status of the actuator is displayed
status "UP"
components
diskSpace
status "UP"
details
total 1167859712
free 1167810560
threshold 10485760
exists true
ping
status "UP"
- https://███/actuator/info
version and built time are displayed
build
version "1.2.1-SNAPSHOT"
artifact "unregister-file-endpoint"
name "UnregisterFileEndpoint"
group "com.hexusfed"
time "2022-06-30T14:44:23.879Z"
- https://██████████/actuator/conditions
Shows the conditions that were evaluated on configuration and auto-configuration classes and the reasons why they did or did not match.
- https://█████/actuator/configprops
Displays a collated list of all configuration properties.
- https://█████/actuator/env
contains internal paths, ports, version numbers etc.
- https://███/actuator/loggers
configuration of loggers in the application
- https://███/actuator/heapdump *** (CRITICAL)***
Downloads a complete heap dump file (about 30 MBs). This file has a PHD-format and can be analyzed with a heapdump analyzer tool.
- https://█████████/actuator/threaddump
Performs a thread dump.
- https://████████/actuator/metrics
internal metrics
- https://█████/actuator/scheduledtasks
For this system there are no scheduled tasks running
- https://█████/actuator/mappings
Displays a collated list of all request paths (mapped to the coresponding internal software module).
System Host(s)
████
Affected Product(s) and Version(s)
spring-boot.actuator.v3
CVE Numbers
Steps to Reproduce
If you use the link https://███████/actuator, you'll see all the leaked endpoints in a json file
Suggested Mitigation/Remediation Actions
By default, all endpoints except for shutdown are enabled. To configure the enablement of an endpoint, use its management.endpoint.<id>.enabled property.
Normally /actuator/health and /actuator/info are enabled the rest is disabled .
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Spring Boot Actuator endpoints were exposed without authentication and with default enablement, allowing public access to sensitive management endpoints.
Impact
An attacker could access internal configuration, environment details, and a heap dump, potentially leading to further compromise or data exposure.
What the attacker needed
None
The fix
The actuator endpoints should be secured by enabling authentication and disabling unnecessary endpoints, for example by setting management.endpoint.<id>.enabled to false for endpoints that are not needed.
How it was found
- Visit the /actuator endpoint on the target host.
- Observe the JSON overview listing all accessible actuator endpoints.
- Access individual endpoints such as /actuator/env, /actuator/heapdump, and others to retrieve sensitive information.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Spring Boot Actuator is a feature that adds special web pages for monitoring and managing an application. These pages are meant to be private, but here they were left open to anyone on the internet. That let anyone see internal details and even download a file containing the application's memory.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.