Critically Sensitive Spring Boot Endpoints Exposed
Some Spring Boot services exposed actuator endpoints publicly, allowing access to sensitive internal data such as tokens and service information. An attacker could read this data without authentication.
- Triaged in 1 hour
- Fixed in 3 months
- Paid in 21 hours
- Disclosed after 15 months
Summary by the program
Spring Boot includes a number of additional features to help you monitor and manage your application when you push it to production. Hacker found that actuator endpoints containing potentially sensitive data (such as internal tokens and service data) were left public.
Summary by the researcher
Semrush has a microservices architecture, there is an API gateway which routes to the server corresponding to the service in the internal network. Some Semrush services use spring boot with actuator endpoints enabled, some services left these endpoints publicly accessible. It was therefore possible to access it as follow: https://semrush.com/service-xyz/actuator/ . Some endpoints leaked sensitive internal data.
What the report shows
Semrush runs a microservices architecture. An API gateway sits in front of the internal network and routes each request to the service that handles it. Some of those services are built on Spring Boot with the actuator module enabled, and on some of them the actuator endpoints were reachable from the public internet rather than only from inside the network.
The researcher found that these endpoints could be reached through the gateway by appending the actuator path to a service path, in this form:
https://semrush.com/service-xyz/actuator/
According to the researcher, some of the exposed endpoints returned sensitive internal data. The program's summary describes that data as potentially sensitive, naming internal tokens and service data as examples. The report does not list which individual actuator endpoints answered, what the responses contained, or how many services were affected.
The program rated the finding critical, with a CVSS score of 9.9, under the weakness category Improper Access Control - Generic. The report does not describe a bounty amount or the remediation that was applied.
Root cause
The report says some services had actuator endpoints enabled and left them publicly accessible, reachable through the gateway under a service path. In other words, the access control that should have kept management endpoints on the internal network was missing at the edge.
Impact
According to the researcher, some exposed endpoints returned sensitive internal data, which the program describes as potentially sensitive, naming internal tokens and service data as examples. The report does not go further than that: it does not show what could be done with the leaked tokens, whether they granted access to other systems, or whether any data beyond the examples named was exposed. The program rated the finding critical, with a CVSS score of 9.9.
How this kind of bug works
Spring Boot Actuator adds production-ready features for monitoring and managing an application: health checks, metrics, configuration properties, environment variables, loggers, thread dumps, HTTP trace information and more. These endpoints are convenient for operators and dangerous when reachable by anyone, because several of them expose configuration and runtime state rather than just a status code. The /env and /configprops style endpoints in particular can reveal credentials, connection strings and tokens that the application holds.
The bug class appears when a service is deployed without restricting the actuator base path. Common causes are a default configuration carried into production, a management port bound to the same interface as the application, or a reverse proxy or gateway that routes every path under a service prefix without an allowlist. The defences are straightforward: expose only the endpoints that are needed, bind the management endpoints to a separate internal interface or port, and enforce authentication and network-level restriction in front of them.
How to test for it
- Identify the technology. Response headers, error pages, cookie names and default paths often reveal that a target runs Spring Boot.
- Enumerate the actuator base path. Try the conventional
/actuatorprefix, and also consider that a gateway may mount services under a prefix, so test both the root and per-service paths. - Request the discovery endpoint first. If it answers, it lists which actuator endpoints are enabled, which tells you where to look next.
- Probe the sensitive endpoints one by one: environment and configuration properties, health details, metrics, loggers, thread dumps and HTTP traces. A positive result is a response containing configuration values, credentials, tokens or internal hostnames that a public client should never see.
- Confirm the exposure is real. Check that the response is not a generic error page, a cached placeholder or a WAF block that merely looks like a success.
Common false positives: an endpoint that returns only a bare status with no detail, a health check that is intentionally public and carries no sensitive fields, or a path that returns a custom 404 from the application. Also be careful with endpoints that reflect your own request data back at you; that is not a leak of server-side configuration.
How it is fixed
- Disable actuator endpoints that are not required in production, and restrict the remainder to the minimum set.
- Bind management endpoints to a separate port or interface that is not reachable from the internet.
- Require authentication and authorisation in front of the actuator base path, at the gateway as well as in the application.
- Add explicit deny rules for management paths in the reverse proxy or API gateway so that a new service cannot silently expose them.
- Rotate any credentials or tokens that were exposed while the endpoints were reachable.
Hunting notes
Actuator exposure tends to hide behind gateways and service prefixes, where a path that looks internal is actually routable from outside. It is worth checking every service prefix you can discover, not just the root domain. Recon signals include Spring Boot fingerprints in headers and error pages, service names in JavaScript bundles and API documentation, and gateway behaviour that forwards unknown subpaths to a backend.
Avoid dumping full secrets into the report; redact them and state their type.
What happened, in plain words
Semrush runs a microservices architecture. Its website and products are not one big program but many smaller programs, called microservices, that each do one job. When you use the site, your browser talks to a front door called an API gateway, and the gateway decides which of those smaller programs should handle your request. Think of a large office building: visitors arrive at reception, and reception sends them to the right department. Visitors are not supposed to wander into the server rooms.
Some of those smaller programs are built with a framework called Spring Boot. Spring Boot has an optional extra module called Actuator, which adds management pages to a running application: pages that report the application's health, its settings, its environment variables, its logs and similar operational information. These pages are meant for the people who run the software, not for the public. They are like the maintenance panel on a lift: useful to the engineer, not something you want on the pavement outside.
The researcher found that on some Semrush services the Actuator pages were switched on and could be reached from the public internet. The gateway routes requests to the service on the internal network, and the actuator path was reachable through it. The researcher described reaching them by adding the Actuator path to a service path, in this form:
https://semrush.com/service-xyz/actuator/
Reading that address from left to right: https://semrush.com is the public site; service-xyz is the name of one particular service, the department in the building; actuator is the management area of that service. The trailing slash simply ends the path. The point is that a path which was supposed to exist only inside the internal network was answering to anyone on the internet.
According to the researcher, some of the exposed pages returned sensitive internal data. The program's own summary calls that data potentially sensitive and gives internal tokens and service data as examples. A token is a short piece of text that acts like a key: software presents it to prove who it is, much as you show a badge to open a door. A token is a short piece of text that acts like a key: software presents it to prove who it is.
The report does not list which individual Actuator pages answered, what the responses contained, or how many services were affected. It also does not describe a bounty amount or the fix that was applied.
The program rated the finding critical, with a CVSS score of 9.9, under the weakness category Improper Access Control - Generic. CVSS is a standard scoring system for the severity of a security flaw, running from 0 to 10; 9.9 is near the top of the scale. Improper access control means, in plain terms, that something which should have been restricted to certain people could be reached by people who should not have had access.
In general, how this kind of bug works
Spring Boot Actuator adds production-ready features for monitoring and managing an application: health checks, metrics, configuration properties, environment variables, loggers, thread dumps, HTTP trace information and more. These pages are convenient for operators and dangerous when reachable by anyone, because several of them expose configuration and runtime state rather than just a status code. The /env and /configprops style pages in particular can reveal credentials, connection strings and tokens that the application holds.
The bug class appears when a service is deployed without restricting the Actuator base path. Common causes are a default configuration carried into production, a management port bound to the same interface as the application, or a reverse proxy or gateway that routes every path under a service prefix without an allowlist. The defences are straightforward: expose only the pages that are needed, bind the management pages to a separate internal interface or port, and enforce authentication and network-level restriction in front of them.
How to test for it
- Identify the technology. Response headers, error pages, cookie names and default paths often reveal that a target runs Spring Boot. Headers are the small lines of information a web server sends alongside a page; cookies are small pieces of data a site stores in your browser to remember you between requests.
- Enumerate the Actuator base path. Try the conventional
/actuatorprefix, and also consider that a gateway may mount services under a prefix, so test both the root and per-service paths. - Request the discovery page first. If it answers, it lists which Actuator pages are enabled, which tells you where to look next.
- Probe the sensitive pages one by one: environment and configuration properties, health details, metrics, loggers, thread dumps and HTTP traces. A positive result is a response containing configuration values, credentials, tokens or internal hostnames that a public client should never see.
- Confirm the exposure is real. Check that the response is not a generic error page, a cached placeholder or a WAF block that merely looks like a success. A WAF, or web application firewall, is a filter placed in front of a site that inspects incoming requests and blocks suspicious ones.
Common false positives: a page that returns only a bare status with no detail, a health check that is intentionally public and carries no sensitive fields, or a path that returns a custom 404 from the application. A 404 is the standard "not found" answer. Also be careful with pages that reflect your own request data back at you; that is not a leak of server-side configuration.
How it is fixed
- Disable Actuator pages that are not required in production, and restrict the remainder to the minimum set.
- Bind management pages to a separate port or interface that is not reachable from the internet.
- Require authentication and authorisation in front of the Actuator base path, at the gateway as well as in the application.
- Add explicit deny rules for management paths in the reverse proxy or API gateway so that a new service cannot silently expose them.
- Rotate any credentials or tokens that were exposed while the pages were reachable. Rotating means replacing them with new ones, so the old copies stop working.
Hunting notes
Actuator exposure tends to hide behind gateways and service prefixes, where a path that looks internal is actually routable from outside. It is worth checking every service prefix you can discover, not just the root domain. Recon signals include Spring Boot fingerprints in headers and error pages, service names in JavaScript bundles and API documentation, and gateway behaviour that forwards unknown subpaths to a backend.
Redacted means the secret parts are blacked out. Avoid dumping full secrets into the report; redact them and state their type.
Glossary
- Microservices: an approach where a product is built from many small programs, each handling one job, instead of one large program.
- API gateway: the front door that receives requests from the internet and forwards each one to the right internal service.
- Spring Boot: a framework for building Java applications, with many features switched on by default.
- Actuator: an optional Spring Boot module that adds management pages reporting health, settings, logs and similar operational data.
- Endpoint: a specific address or path on a server that answers requests.
- Request: a message your browser sends to a server asking for something, such as a page.
- Response: the message the server sends back.
- Token: a short piece of text used like a key, presented by software to prove its identity.
- Access control: the rules deciding who is allowed to reach what.
- Improper access control: a flaw where something restricted can be reached by people who should not have access.
- CVSS: a standard 0 to 10 scale for rating the severity of a security flaw.
- Critical: the highest severity band in that rating.
- Header: a line of information a web server sends alongside a page, such as its type or the software serving it.
- Cookie: a small piece of data a site stores in your browser to remember you between requests.
- WAF: web application firewall, a filter in front of a site that blocks suspicious requests.
- 404: the standard "not found" answer when a path does not exist.
- False positive: a result that looks like a problem but is not one.
- Redacted: with the secret parts removed or blacked out.
- Rotate: replace a credential or token with a new one so the old copy stops working.