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โฆ๐
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
- Select a subdomain that returns 403 Access Denied.
- Use WaybackURLs to find historical URLs on that subdomain.
- Manually open JavaScript files from the Wayback data and find a JSON file that returns 200 OK.
- Run directory enumeration on the JSON file's path to find other accessible files.
- From Wayback data, find a directory similar to the JSON file's directory and enumerate it to find app.js.
- 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.