The Blank Page That Hid a Bug
A subdomain exposed a .git directory and .gitignore file, but the author found no sensitive information such as credentials. The exposure was reported as a misconfiguration and was fixed, though it was not high severity.
infosecwriteups.com
Published on infosecwriteups.com
As you know, I’m currently hunting on same target. So far, I’ve reported several bugs and written some write-ups based on those findings.
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 web server was misconfigured to serve hidden version-control files instead of blocking access to them.
Impact
The exposed files could have revealed sensitive information, but in this case nothing sensitive was found and the issue was not high severity.
What the attacker needed
Target subdomain with exposed .git directory; no authentication required
The fix
The exposed directories were fixed by the target's security team.
How it was found
- Fuzz the subdomain for directories, limiting request rate to avoid a WAF ban.
- Use a crawler to discover more content, then manually review the results.
- Notice a directory that returns a blank 200 OK page.
- Fuzz that specific directory and find .git and .gitignore.
- Download .git/config and .gitignore, checking for credentials or sensitive settings.
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 .git directory is a hidden folder that version-control software uses to store a project's history and settings. If a website accidentally leaves it public, anyone can download files that might reveal source code or secrets. Here, the folder was exposed but contained nothing sensitive.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.