Skip to content
Info disclosure Disclosed report Beginner

Spring Actuator endpoints publicly available and broken authentication

Spring Boot Actuator endpoints /heapdump and /env were publicly accessible due to insufficient access control, leaking sensitive information from two applications. Additionally, both applications used a library that failed to expire and invalidate old tokens, enabling replay attacks.

kazan71p Follow

Originally disclosed on HackerOne

Bounty$12,500 Critical View original
  • Triaged in under an hour
  • Fixed in 1 hour
  • Paid in 48 days
  • Disclosed after 4 months

Summary by the program

Due to insufficient access control, it was possible to access the Spring Boot Actuator endpoints /heapdump and /env. @kazan71p identified two highly sensitive applications leaking information through these endpoints.

The LINE Security team shutdown the secondary endpoints just as it was discovered by the reporter, as part of our incident response process. After further investigation, we also found that both applications had the same issue with their authentication functionality, due to using the same library. The issue was that old tokens were not expiring and being properly invalidated, allowing for replay attacks that should not have been possible.

The applications were highly sensitive in nature, but due to not being able to retrieve specific data, we decided to award a bounty slightly below the maximum reward for this type of issue. We want to thank @kazan71p for his cooperation and contribution to our program!

The original report as published on HackerOne, by kazan71p. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target was a set of applications under *.line-apps.com, operated by LY Corporation (LINE). The applications were built on Spring Boot and exposed Spring Boot Actuator endpoints. Actuator is the operational surface of a Spring Boot application: it exposes endpoints such as /env (environment properties) and /heapdump (a snapshot of the JVM heap) that are meant for operators and monitoring, not for the public internet. When those endpoints are reachable without proper access control, they leak configuration and in-memory data.

The program's summary describes the affected applications as highly sensitive in nature. Two applications were involved, and both leaked information through the same two endpoints.

Setup

The report does not describe any accounts, roles, tooling or versions used by the researcher. What is known from the program's summary is the precondition: the Actuator endpoints /heapdump and /env were reachable because of insufficient access control, and the two applications shared a library that handled authentication.

Finding it

The researcher identified two applications that exposed the Spring Boot Actuator endpoints /heapdump and /env. Both endpoints are diagnostic by design, and neither should be reachable by an unauthenticated or unauthorised party on a production system. The exposure itself was the entry point: /env exposes environment properties, and /heapdump exposes the contents of the JVM heap.

The program's summary attributes the exposure to insufficient access control rather than to a flaw in Actuator itself.

Exploitation

Step 1: Reach the Actuator endpoints

The researcher accessed the /heapdump and /env endpoints on the two applications. The report does not include the exact requests, hostnames or responses, so the precise URLs and payloads are not reproduced here. What the program confirms is that the endpoints were reachable and that they leaked information from both applications.

Step 2: Use the leaked material against authentication

While investigating, the LINE Security team found that both applications had the same issue in their authentication functionality, because they used the same library. Old tokens were not expiring and were not being properly invalidated. That allowed replay attacks that should not have been possible.

The report does not show the token format, the requests used to replay a token, or the responses returned. The mechanism it describes is the one above: a token that should have been rejected after expiry or invalidation was still accepted.

Root cause

Two separate mistakes combined here.

  1. Access control on Actuator. The /heapdump and /env endpoints were reachable because of insufficient access control. Actuator endpoints are powerful by design, and exposing them without authorisation checks turns a diagnostic feature into an information leak.
  2. Token lifecycle in a shared authentication library. Both applications used the same library, and that library failed to expire old tokens and failed to invalidate them properly. A token that should have been dead remained usable, which is what enabled replay.

Because the two applications shared the library, the authentication defect was present in both, which is why the program describes it as the same issue rather than two independent ones.

Impact

The program describes the applications as highly sensitive in nature. Through the exposed endpoints, information from both applications was accessible, and the authentication defect allowed replay of old tokens that should no longer have been valid.

The program also states a limit on the impact assessment: it was not possible to retrieve specific data, and the bounty was set slightly below the maximum reward for this type of issue for that reason. The bounty was set slightly below the maximum reward for this type of issue.

Fix

The LINE Security team shut down the secondary endpoints as soon as the researcher discovered them, as part of the incident response process. The authentication issue was identified during the follow-up investigation: old tokens were not expiring and were not being properly invalidated, which allowed replay attacks.

Variants to test

  1. Other Actuator endpoints on the same hosts. Try /actuator/env, /actuator/heapdump, /actuator/health, /actuator/mappings and similar paths. A positive result is a response containing environment properties, a downloadable heap dump, or route mappings that should not be public.
  2. Path variants around the same endpoint. Try the endpoint under a different base path or with a trailing slash. A positive result is the same sensitive content returned through a path that the access control rule does not cover.
  3. Token replay after logout or expiry. Capture a token, wait past its stated lifetime or trigger a logout, then replay it. A positive result is a successful authenticated response where the application should have rejected the token.
  4. Shared-library fingerprinting. When two applications in the same estate behave identically around authentication, test the token lifecycle on both. A positive result is the same replay behaviour on the second application, which points to a common library rather than a one-off bug.

Hunting notes

Spring Boot Actuator exposure tends to hide on hosts that are not the main product: internal tools, admin panels, secondary applications and anything deployed from a shared template. During recon, the signal is a Spring Boot application whose error pages, headers or default paths suggest Actuator is enabled, followed by a check of whether /env or /heapdump answers without authentication.

The second signal in this case was architectural: two applications using the same authentication library. When one application mishandles token expiry or invalidation, the sibling applications built on the same library are worth testing with the same replay.

The program noted that specific data could not be retrieved, and the bounty was set slightly below the maximum for this type of issue.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

Two applications run by LY Corporation (the company behind LINE) were built with a popular tool for making web applications in Java, called Spring Boot. Spring Boot ships with a set of built-in pages, called Actuator endpoints, that are meant for the people who run the servers, not for the public. Two of those pages, /heapdump and /env, were reachable by anyone on the internet because the access control around them was insufficient. That meant configuration details and a snapshot of the application's memory could be downloaded.

While looking into this, the LINE Security team found a second problem. Both applications used the same library to handle login tokens, and that library did not expire old tokens or invalidate them properly. A token that should have stopped working could still be used, which is called a replay attack.

The security team shut the exposed endpoints down as soon as the researcher found them. Because the team could not retrieve specific data, the bounty was set slightly below the maximum for this kind of issue. The bounty was set slightly below the maximum reward for this type of issue.

Context

The target was a set of applications under *.line-apps.com, operated by LY Corporation (LINE). The applications were built on Spring Boot and exposed Spring Boot Actuator endpoints.

To unpack that: Spring Boot is a framework, meaning a collection of ready-made building blocks, for writing web applications in the Java programming language. Actuator is an optional part of Spring Boot that adds extra pages to an application so that operators can look inside it while it runs. Think of it like the service hatch on a machine: useful for the engineer who maintains it, dangerous if it is left open to the street.

Two of those pages matter here:

  • /env lists environment properties. Environment properties are the settings an application reads when it starts: database addresses, feature switches, and sometimes credentials.
  • /heapdump produces a snapshot of the JVM heap. The JVM (Java Virtual Machine) is the program that runs Java applications, and the heap is the area of memory where the application keeps its objects while running. A heap dump is therefore a copy of everything the application currently holds in memory, which can include secrets and user data.

Both pages are meant for operators and monitoring, not for the public internet. When they are reachable without proper access control, they leak configuration and in-memory data.

The program's summary describes the affected applications as highly sensitive in nature. Two applications were involved, and both leaked information through the same two endpoints.

Setup

The report does not describe any accounts, roles, tooling or versions used by the researcher. What is known from the program's summary is the precondition: the Actuator endpoints /heapdump and /env were reachable because of insufficient access control, and the two applications shared a library that handled authentication.

Authentication is the process of proving who you are, for example by logging in. A library is a bundle of code that many applications can reuse instead of writing the same logic themselves. Sharing a library is efficient, but it also means a mistake inside the library appears in every application that uses it, all at once.

Finding it

The researcher identified two applications that exposed the Spring Boot Actuator endpoints /heapdump and /env. Both endpoints are diagnostic by design, and neither should be reachable by an unauthenticated or unauthorised party on a production system. The exposure itself was the entry point: /env exposes environment properties, and /heapdump exposes the contents of the JVM heap.

The program's summary attributes the exposure to insufficient access control rather than to a flaw in Actuator itself. In other words, the feature worked as designed; the mistake was in who was allowed to reach it.

Exploitation

Step 1: Reach the Actuator endpoints

The researcher accessed the /heapdump and /env endpoints on the two applications. The report does not include the exact requests, hostnames or responses, so the precise URLs and payloads are not reproduced here. What the program confirms is that the endpoints were reachable and that they leaked information from both applications.

Why this step matters: an attacker does not need to break any password to read these pages. If the page answers a plain browser request, the information is simply public. That is why the first thing to check on any Spring Boot application is whether these paths respond at all.

Step 2: Use the leaked material against authentication

While investigating, the LINE Security team found that both applications had the same issue in their authentication functionality, because they used the same library. Old tokens were not expiring and were not being properly invalidated. That allowed replay attacks that should not have been possible.

A token, in this context, is a piece of text that an application gives you after you log in, and that you send back with every later request so the application knows who you are. It works like a cloakroom ticket: you hand in your coat, you get a ticket, and you show the ticket to get the coat back. Expiring a token means the ticket has a time limit. Invalidating it means the cloakroom cancels the ticket on purpose, for example when you log out. A replay attack means using an old ticket again, after it should have stopped working.

The report does not show the token format, the requests used to replay a token, or the responses returned. The mechanism it describes is the one above: a token that should have been rejected after expiry or invalidation was still accepted.

Root cause

Two separate mistakes combined here.

  1. Access control on Actuator. The /heapdump and /env endpoints were reachable because of insufficient access control. Actuator endpoints are powerful by design, and exposing them without authorisation checks turns a diagnostic feature into an information leak.
  2. Token lifecycle in a shared authentication library. Both applications used the same library, and that library failed to expire old tokens and failed to invalidate them properly. A token that should have been dead remained usable, which is what enabled replay.

Because the two applications shared the library, the authentication defect was present in both, which is why the program describes it as the same issue rather than two independent ones.

Impact

The program describes the applications as highly sensitive in nature. Through the exposed endpoints, information from both applications was accessible, and the authentication defect allowed replay of old tokens that should no longer have been valid.

The program also states a limit on the impact assessment: it was not possible to retrieve specific data, and the bounty was set slightly below the maximum reward for this type of issue for that reason. The award was 12,500 USD at critical severity.

Fix

The LINE Security team shut down the secondary endpoints as soon as the researcher discovered them, as part of the incident response process. Incident response is the routine a company follows once it learns something is wrong: contain the problem first, then investigate.

The authentication issue was identified during the follow-up investigation: old tokens were not expiring and were not being properly invalidated, which allowed replay attacks.

Variants to test

These are the same checks, written for someone who has only a browser. Each one lists what a positive result looks like.

  1. Other Actuator endpoints on the same hosts. Try /actuator/env, /actuator/heapdump, /actuator/health, /actuator/mappings and similar paths. A positive result is a response containing environment properties, a downloadable heap dump, or route mappings that should not be public. Route mappings are the list of addresses the application answers on, which tells an outsider how the application is built.
  2. Path variants around the same endpoint. Try the endpoint under a different base path or with a trailing slash. A positive result is the same sensitive content returned through a path that the access control rule does not cover. Access control rules often match exact addresses, so a slightly different spelling can slip past them.
  3. Token replay after logout or expiry. Capture a token, wait past its stated lifetime or trigger a logout, then replay it. A positive result is a successful authenticated response where the application should have rejected the token. In a browser, this means copying the token out of the developer tools and sending it again after logging out.
  4. Shared-library fingerprinting. When two applications in the same estate behave identically around authentication, test the token lifecycle on both. A positive result is the same replay behaviour on the second application, which points to a common library rather than a one-off bug. Fingerprinting here means recognising the same underlying component from the way it behaves.

Hunting notes

Spring Boot Actuator exposure tends to hide on hosts that are not the main product: internal tools, admin panels, secondary applications and anything deployed from a shared template. During recon, the signal is a Spring Boot application whose error pages, headers or default paths suggest Actuator is enabled, followed by a check of whether /env or /heapdump answers without authentication. Recon, short for reconnaissance, is the early phase of looking around and collecting clues before testing anything.

The second signal in this case was architectural: two applications using the same authentication library. When one application mishandles token expiry or invalidation, the sibling applications built on the same library are worth testing with the same replay.

The program noted that specific data could not be retrieved, and the bounty was set slightly below the maximum for this type of issue.

Glossary

  • Access control: the rules that decide who is allowed to reach which part of a system.
  • Actuator: an optional part of Spring Boot that adds diagnostic pages for operators.
  • Authentication: proving who you are, for example by logging in.
  • Authorisation: deciding what an authenticated person is allowed to do.
  • Bounty: a reward paid by a company for a valid security report.
  • Critical severity: the highest rating in the scale used for this report.
  • Endpoint: a specific address on a web application that answers requests, such as /env.
  • Environment properties: the settings an application reads at startup, such as addresses and switches.
  • Expiry: the point in time after which a token is no longer valid.
  • Heap: the area of memory where a running Java application keeps its objects.
  • Incident response: the routine a company follows after learning of a security problem, starting with containment.
  • Invalidation: deliberately cancelling a token before its natural expiry, for example on logout.
  • JVM (Java Virtual Machine): the program that runs Java applications.
  • Library: a bundle of reusable code that many applications can share.
  • Recon: the early phase of collecting information about a target before testing.
  • Replay attack: reusing an old token that should no longer be accepted.
  • Route mappings: the list of addresses an application answers on.
  • Spring Boot: a framework for building web applications in Java.
  • Token: a piece of text given after login and sent back with later requests to identify the user.

More by kazan71p

View all

6 more disclosed reports, best first.

More from LY Corporation

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.