Skip to content
Info disclosure Write-up Intermediate

Access Denied Subdomain Bypass

A subdomain that appeared entirely access-denied actually had a permitted directory containing a JSON file that listed JavaScript files. By enumerating from that directory, the hunter found further files that exposed employee email addresses and internal Bitbucket repository names in plain text.

medium.com

Published on medium.com

Read for Free..eee.eโ€ฆ๐Ÿ‘ˆ

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 access control was applied inconsistently, leaving some directories and files publicly accessible while others were blocked.

Impact

The exposed data included employee email addresses and internal Bitbucket repository names, which the security team considered not very sensitive and rated low severity.

What the attacker needed

Target subdomain with 403 responses; access to historical URL data; manual browsing of files

How it was found

  1. Select a subdomain that returns 403 Access Denied.
  2. Use WaybackURLs to find historical URLs on that subdomain.
  3. Manually open JavaScript files from the Wayback data and find a JSON file that returns 200 OK.
  4. Run directory enumeration on the JSON file's path to find other accessible files.
  5. From Wayback data, find a directory similar to the JSON file's directory and enumerate it to find app.js.
  6. Read app.js to discover new directories, then enumerate those to find files that expose email addresses and Bitbucket repositories.

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 website can show 'Access Denied' on most pages but still allow access to a few specific folders or files. If you find one allowed file, it might link to other allowed files that contain sensitive information. Here, a JSON file (a data file) listed other files, and following those links led to a file with email addresses and repository names.

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.