Skip to content
Info disclosure Write-up Beginner

Default Page to Admin Paths Exposure

A subdomain showed a default Nginx page, but directory enumeration found an exposed Swagger API specification listing admin paths. An attacker could use this to discover administrative endpoints, though the security team said they already knew about the issue.

medium.com

Published on medium.com

I hope my write-ups are simple and helpful for you. So you can gain some knowledge using my bug findings and apply yourself in your bug hunting journey.

SIDDHANT SHUKLA, 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 API documentation file was left publicly accessible on a subdomain that otherwise served only a default page.

Impact

The exposed specification could reveal administrative endpoints to an attacker, but the text does not show that any of them were actually reachable or abused.

What the attacker needed

None

How it was found

  1. Enumerate subdomains of the target with subfinder.
  2. Fuzz for more subdomains with ffuf and keep those returning HTTP 200.
  3. Open the subdomain named secure.target.com and see a default Nginx page.
  4. Run dirsearch against that subdomain, excluding 403 and 404 responses.
  5. Find the path /api/swagger.json, which lists admin paths.

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 web server sometimes shows a default 'welcome' page when no real site is configured. Here, a tool that guesses file and folder names found an API description file (Swagger) that listed administrative URLs. That does not by itself let someone in, but it hands them a map of sensitive endpoints to try.

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.