Skip to content
Info disclosure Write-up Intermediate

Extracting Data from the Subdomain Grave

An access-denied subdomain was found to expose sensitive files, including HMAC credentials and tokens, after discovering a directory that served double-extension files like index.js.html. The attacker could access these secrets by fuzzing directories on a non-standard port.

medium.com

Published on medium.com

Hey fellow Bug Hunters or Security Researchers, Hope my write-ups are helpful and easy to understand for all of you guys. These days I am getting a lot of DMs on social media on how do I find these bugs and let me tell you, there is one and only one trick or tip “Start Hacking”.

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 subdomain's access control was misconfigured, allowing directory listing and exposure of sensitive files on a non-standard port.

Impact

An attacker could obtain HMAC credentials and tokens, potentially leading to unauthorized access to services or data.

What the attacker needed

Target has an access-denied subdomain; Non-standard port is open; Directory with sensitive files is accessible

How it was found

  1. Discovered a subdomain that returned Access Denied.
  2. Scanned ports and found a non-standard port open.
  3. Fuzzed directories on that port with double-extension files.
  4. Found a directory returning 200 OK with larger data.
  5. Opened index.js.html in that directory and saw references to other files.
  6. Opened those files and found HMAC credentials, tokens, and codebase file list.

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 subdomain that normally shows 'Access Denied' was hiding files that contained secret keys and tokens. By guessing folder names on a different port, the researcher found a folder that listed these files, which anyone could open. The secrets could let an attacker access services or data they shouldn't.

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.