Memory Dump and Env Disclosure via Spring Boot Actuator
Spring Boot Actuator endpoints were publicly reachable, including a large heap dump file. An attacker could download it and obtain source code, private keys and internal data.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 28 days
- Disclosed after 4 months
Summary by the program
Memory Dump and Env Disclosure via Spring Boot Actuator
Summary by the researcher
Spring boot actuator files/endpoints can be accessed via path like stripo.email/██████/actuator/*, including a 110 MB heapdump file, which expose source code, private keys and some internal data!
The maximum severity of this asset is medium, so neither I nor the triage team have been able to set severity as critical.
What the report shows
The target is the Stripo Inc asset stripo.email, and the weakness is classed as a misconfiguration. The researcher found that Spring Boot Actuator endpoints were reachable under a path prefix, in the form:
stripo.email/██████/actuator/*
Through that path the researcher could reach Actuator endpoints, including a heapdump file of about 110 MB. According to the report, that dump exposed source code, private keys and some internal data.
The report gives no request or response, no list of which Actuator endpoints answered, and no detail on how the path prefix was discovered. It also does not say how the private keys or source code were extracted from the dump.
The program titled the issue "Memory Dump and Env Disclosure via Spring Boot Actuator", which points at two exposed areas: the heap dump and the environment endpoint. The researcher notes that the maximum severity for this asset is medium, so neither the researcher nor the triage team could set the severity to critical. The disclosed severity is medium. The report records no bounty amount and no fix details.
Root cause
The likely root cause is that Spring Boot Actuator was left enabled and exposed, with its endpoints reachable behind a path prefix. When the heapdump endpoint is exposed this way, the application hands out a full JVM heap snapshot to anyone who can reach the path. The prefix in the URL suggests the application was mounted under a context path, and the Actuator endpoints were served alongside it rather than being disabled or restricted.
Impact
As the report describes it, an attacker reaching the path could download the heap dump and obtain source code, private keys and internal data. Private keys are the most serious item named: depending on what they sign or decrypt, their exposure can undermine TLS, signing or other trust relationships. Source code and internal data lower the effort needed for further attacks. The report does not enumerate which keys or which internal data were present, and it does not describe any follow-on exploitation. The maximum severity for this asset is medium, so the rating stayed there despite the content of the dump.
How this kind of bug works
Spring Boot Actuator adds operational endpoints to an application: health, metrics, environment properties, configuration, thread dumps and, when enabled, a heap dump. In a default or lightly customised setup these endpoints are served under a base path, commonly /actuator, and many of them are exposed over HTTP. Some are sensitive by nature. The env endpoint returns the resolved environment, which can include property values from configuration files and the environment. The heapdump endpoint streams an HPROF snapshot of the running JVM, which contains live objects: strings such as configuration values, credentials held in memory, session material, and loaded classes.
The bug happens when these endpoints are exposed to untrusted networks without authentication and without restricting which endpoints are enabled. Frameworks make it easy to switch them on for debugging and forget to switch them off, or to assume that a path prefix or an unusual URL hides them. It does not: anything a browser or a scanner can reach, an attacker can reach.
Defences are layered. Only the endpoints actually needed should be enabled, sensitive ones such as heapdump, env and configprops should be off in production, the management port should be bound to a separate interface or localhost, and access should require authentication and authorisation. A reverse proxy or WAF rule that blocks the management paths adds another layer, but it is not a substitute for disabling the endpoints.
How to test for it
- Identify that the target runs Spring Boot. Signals include error pages with Spring whitelabel styling,
X-Application-Contextstyle headers, cookies or paths that suggest a Spring stack, and JavaScript or API paths that mirror Spring conventions. - Probe the common Actuator base paths:
/actuator,/actuator/health,/actuator/env,/actuator/heapdump, and variants under application context prefixes, since the base path can sit below a context path. - Send a plain GET to each candidate. A positive result is a JSON body listing links to endpoints, a health document, an environment document, or a binary download starting with the HPROF header for the heap dump.
- If the index endpoint is reachable, read the list of exposed endpoints from it rather than guessing each one.
- Treat a 200 with real content as the finding. A 401 or 403 means the endpoint exists but is protected, which is not the same bug.
Common false positives: a generic 200 from a single-page application that returns the same HTML for every path, a health endpoint that returns only status with no sensitive data, and error pages that merely mention Spring. Confirm the response body actually contains Actuator content before reporting.
How it is fixed
Disable Actuator endpoints that are not needed in production, in particular heapdump, env, configprops and threaddump. Where management endpoints are required, move them to a separate management port bound to an internal interface, and require authentication and role-based authorisation for them. Rotate any secrets, keys or credentials that appeared in an exposed dump or environment listing, since disclosure is permanent once the data has left the host. Add monitoring or alerting on access to management paths.
Hunting notes
Actuator exposure tends to hide on hosts that are less scrutinised: staging and internal-looking subdomains, applications mounted under a context path, and services behind a proxy that forwards everything. Recon signals include Spring fingerprints in headers and error pages, and directory or path discovery results that surface a management base path. Once a base path is found, the index endpoint is the fastest way to see what is exposed.
To make the report land, show the concrete sensitive content, not just that an endpoint answered: the presence of a heap dump with its size, or environment entries that contain credentials, with values redacted in the write-up. Explain what an attacker could do with the specific data found, and note any asset-level severity cap that applies. Avoid dumping more data than needed to prove the point.
What happened, in plain words
Stripo Inc runs a service at stripo.email. Spring Boot is a popular toolkit for writing Java web applications. Spring Boot ships with an optional feature called Actuator: a set of built-in web pages that report on the health and inner workings of a running application. Think of it like the service hatch on a building: useful for the people who maintain it, but not something you want left open to the street.
The researcher found that these Actuator pages could be reached on the live site through a path of this shape:
stripo.email/██████/actuator/*
A path is the part of a web address after the domain name, the bit that tells the server which page you want. The * at the end is a wildcard meaning "anything under here". The ██████ block is a prefix that the report redacts, so we do not know what it was. The important part is /actuator/: it is the standard address where Spring Boot serves its management pages.
Among the pages reachable this way was one called heapdump. A heap dump is a snapshot of everything the application currently holds in its working memory. When a Java program runs, it keeps its live data in an area called the heap: text strings, configuration values, passwords it is using, and the program's own code. The heapdump page lets a visitor download that entire snapshot as a file. Here the file was about 110 MB.
According to the report, that dump exposed source code (the human-written instructions that make up the program), private keys and some internal data. A private key is a secret piece of text used in encryption; whoever holds it can prove they are the rightful owner of something, such as a website's identity or a signed document. Leaking one is serious because it can let someone impersonate the real owner.
The program titled the issue "Memory Dump and Env Disclosure via Spring Boot Actuator". The "Env" part of the title refers to the Actuator env page, which lists the application's environment settings. The report does not list which Actuator pages answered, how the path prefix was found, or how the keys and source code were pulled out of the dump.
The researcher notes that the maximum severity of this asset is medium, so neither the researcher nor the triage team (the people who review and rate reports) could set it to critical. The disclosed severity is medium. No bounty amount and no fix details are recorded.
In general, how this kind of bug works
Spring Boot Actuator adds operational pages to an application: health checks, metrics, environment settings, configuration, thread dumps and, when switched on, a heap dump. By default these sit under a base path, commonly /actuator, and many are served over ordinary HTTP. Some are harmless; others are sensitive by nature. The env page returns the resolved environment, which can include values from configuration files. The heapdump page streams an HPROF snapshot (the standard file format for Java memory dumps) of the running program, containing live objects: configuration strings, credentials held in memory, session material and loaded classes.
The bug happens when these pages are reachable from the internet without a login and without limiting which pages are switched on. Frameworks make it easy to enable them for debugging and forget to disable them, or to assume an unusual URL prefix hides them. It does not: anything a browser or a scanner can reach, an attacker can reach.
Defences come in layers. Only the pages actually needed should be enabled; sensitive ones such as heapdump, env and configprops should be off in production; the management pages should listen on a separate port bound to an internal interface or localhost; and access should require authentication and authorisation. A reverse proxy or web firewall rule blocking the management paths adds another layer, but it is no substitute for switching the pages off.
How to test for it
- Work out whether the target runs Spring Boot. Clues include error pages with Spring's default "whitelabel" look, headers or cookies that suggest a Spring stack, and API paths that follow Spring conventions.
- Try the common Actuator base paths:
/actuator,/actuator/health,/actuator/env,/actuator/heapdump, and variants under application context prefixes, because the base path can sit below a context path. - Send a plain GET request to each candidate. A GET is the basic browser request for a page. A positive result is a JSON body listing links to endpoints, a health document, an environment document, or a binary download starting with the HPROF header for the heap dump.
- If the index page is reachable, read the list of exposed endpoints from it rather than guessing each one.
- Treat a 200 response with real content as the finding. A 401 or 403 means the page exists but is protected, which is not the same bug.
Common false positives: a generic 200 from a single-page application that returns the same HTML for every path, a health page that returns only a status with no sensitive data, and error pages that merely mention Spring. Confirm the response body actually contains Actuator content before reporting.
How it is fixed
Disable Actuator endpoints that are not needed in production, in particular heapdump, env, configprops and threaddump. Where management pages are required, move them to a separate management port bound to an internal interface, and require authentication and role-based authorisation. Rotate any secrets, keys or credentials that appeared in an exposed dump or environment listing, because disclosure is permanent once the data has left the host. Add monitoring or alerting on access to management paths.
Hunting notes
Actuator exposure tends to hide on hosts that are less scrutinised: staging and internal-looking subdomains, applications mounted under a context path, and services behind a proxy that forwards everything. Recon signals include Spring fingerprints in headers and error pages, and path discovery results that surface a management base path. Once a base path is found, the index page is the fastest way to see what is exposed.
To make the report land, show the concrete sensitive content, not just that a page answered: the presence of a heap dump with its size, or environment entries that contain credentials, with values redacted in the write-up. Explain what an attacker could do with the specific data found, and note any asset-level severity cap that applies. Avoid dumping more data than needed to prove the point.
Glossary
- Actuator: a Spring Boot feature that adds built-in management and monitoring pages to an application.
- Authentication: proving who you are, usually with a username and password or a token.
- Authorisation: deciding what an authenticated user is allowed to do.
- Base path: the common URL prefix under which a set of pages is served, such as
/actuator. - Bounty: a reward paid by a company for a valid security report.
- Context path: an extra prefix under which a whole application is mounted on a server.
- Credential: any secret used to log in or prove identity, such as a password or token.
- GET request: the basic HTTP request a browser sends to fetch a page.
- Heap: the area of memory where a running Java program keeps its live data.
- Heap dump: a file containing a snapshot of everything in a program's memory at one moment.
- HPROF: the standard file format for Java heap dumps.
- HTTP: the protocol browsers and servers use to exchange web pages and data.
- JSON: a text format for structured data, commonly returned by web APIs.
- JVM: the Java Virtual Machine, the software that runs Java programs.
- Misconfiguration: a setting left in an unsafe state, rather than a flaw in the code itself.
- Private key: a secret piece of text used in encryption to prove ownership or decrypt data.
- Reverse proxy: a server that sits in front of an application and forwards requests to it.
- Severity: a rating of how serious a vulnerability is, often from low to critical.
- Source code: the human-written instructions that make up a program.
- Spring Boot: a popular framework for building Java web applications.
- Triage: the process of reviewing, validating and rating a security report.
- WAF: a web application firewall, which filters traffic to block attacks.
- Wildcard: a symbol such as
*that stands for "anything here". - 401 / 403: HTTP status codes meaning "not logged in" and "logged in but not allowed".
- 200: the HTTP status code meaning "OK, here is the page".