My first bounty
The reporter found that .htaccess and web.config files were publicly accessible on a target site. An attacker could read these files to learn about server configuration and potentially sensitive information.
medium.com
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 dotfiles and configuration files instead of denying access to them.
Impact
An attacker could read server configuration files, which may reveal sensitive details useful for further attacks.
What the attacker needed
None
How it was found
- Run a directory brute-force scan against the target with recursive scanning and specific status codes.
- Observe that .htaccess and web.config return HTTP 200.
- Manually open the files in a browser to confirm they are publicly accessible.
- Report the exposure as sensitive files exposure.
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.
Some websites keep configuration files like .htaccess and web.config in the public folder. If the server does not block access to them, anyone can open them in a browser. These files can reveal how the server is set up, which helps an attacker plan further attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.