The Broken Directory Bug
A static file subdomain exposed a script file that returned 403 Forbidden, and after subdomain fuzzing a staging subdomain was found that allowed access to the script, which referenced a JavaScript directory containing exposed S3 buckets and internal sensitive information. The attacker could read these files to obtain sensitive data.
infosecwriteups.com
Published on infosecwriteups.com
I was hunting on my primary payment app back in January 2025 and at that time I don’t know have much knowledge of recon, so I started with very basic thing. As you read this blogs you’ll know how this discovery leads to a big discovery.
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 a misconfigured access control on a static file subdomain allowed directory listing or direct access to sensitive files after bypassing a 403 restriction via an alternate subdomain.
What the attacker needed
Target uses a static file subdomain; attacker can perform subdomain fuzzing; no authentication required
How it was found
- Used waybackurls to collect historical URLs for a subdomain.
- Clicked on broken links and image files to find sensitive directories.
- Guessed common and target-specific directory names.
- Ran dirsearch on a promising directory and found a script file returning 403.
- Fuzzed subdomains with ffuf and found a staging subdomain that allowed access to the script.
- Read the script, found a utils directory, and enumerated it to access JavaScript files with S3 buckets and sensitive information.
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 a website subdomain meant only for storing images and other static files. By guessing folder names and trying different subdomains, the researcher found a hidden folder that was not properly protected, and it contained files with sensitive information like cloud storage details. This shows that forgotten or misconfigured folders can leak data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.