Skip to content
Account takeover Write-up Beginner

Spring Boot Actuator expuesto conduce a Account Takeover (ATO)

Spring Boot Actuator endpoints were exposed without authentication, allowing an attacker to read logs and list active sessions. The attacker obtained a valid session identifier for a privileged user and used it to take over the account.

medium.com

Published on medium.com

Los actuatorsde Spring Bootse emplean para exponer información operacional de la aplicación en tiempo de ejecución, incluyendo estado del sistema, métricas, propiedades de configuración, información general y distintos volcados de diagnóstico.

Miguel Segovia Gil, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Spring Boot Actuator endpoints were left enabled and reachable without authentication, exposing sensitive operational data such as logs and session identifiers.

Impact

An attacker could take over a privileged account and access the application with that user's permissions; the tester stopped before causing disruption.

What the attacker needed

Actuator endpoints reachable without login; A user has recently logged in; Attacker can reach the application

The fix

The report says the vulnerability was reported and fixed immediately, but does not describe the fix; it should be fixed by requiring authentication and restricting network access to Actuator endpoints.

How it was found

  1. Run a Nuclei scan with exposure tags and critical severity against the target.
  2. Notice a reference to /actuator/health inside a publicly reachable JSON configuration file.
  3. Fuzz and confirm that many /actuator endpoints are exposed, including env, sessions, logfile and mappings.
  4. Read /actuator/logfile and identify a user who recently logged in successfully.
  5. Query /actuator/sessions with that username to obtain an apparent valid session identifier.
  6. Encode the identifier in Base64, set it as the SESSION cookie in the browser, and access the application as the privileged user.

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 write-up has not been written yet. The Original tab links to the source.

Spring Boot Actuator is a built-in feature that lets operators inspect a running Java application, for example its health, logs and active sessions. If those pages are reachable from the internet without a login, anyone can read them. Here the session list handed out a valid session identifier, which is like a temporary key proving you are logged in, so the attacker could pretend to be an administrator.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.