Skip to content
Info disclosure Write-up Intermediate

How a Forgotten Subdomain Led to Critical Access

A forgotten subdomain still pointed to an active server that exposed Spring Boot Actuator endpoints, leaking secrets such as database passwords and an admin API key. The attacker used the leaked admin key to access the company's primary cloud management platform, gaining control over virtual machines, cloud storage, and logs.

medium.com

Published on medium.com

It started with a feeling — a nagging sense that we were missing something. We’d been hired to test the security of a fast-growing tech company.

Aj, 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 decommissioned subdomain's server was left running with Spring Boot Actuator endpoints exposed without authentication, leaking sensitive configuration data.

Impact

The attacker could use the leaked admin API key to authenticate to the company's primary cloud management platform, gaining the ability to spin up and down virtual machines, access every stored file in cloud buckets, and view real-time logs from the core application.

What the attacker needed

Forgotten subdomain still resolves; server left running; Spring Boot Actuator endpoints exposed; no authentication on actuator

How it was found

  1. Enumerate subdomains and find one returning 404.
  2. Perform DNS lookup to confirm the subdomain points to an active IP.
  3. Send direct HTTP requests to the IP, bypassing the browser.
  4. Fuzz common API paths like /admin, /test, /v1, and /health.
  5. Discover /health returns 200 OK with 'healthy'.
  6. Request /env to retrieve exposed secrets including database passwords and an admin API key.

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.

A company had an old website address that they stopped using but never turned off the computer behind it. That computer had a debugging feature left on that accidentally showed secret passwords and keys. A tester found these secrets and used them to get into the company's main cloud system, which controlled many services.

What is Info disclosure?

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

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.