Skip to content
Info disclosure Write-up Beginner

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

  1. Run a directory brute-force scan against the target with recursive scanning and specific status codes.
  2. Observe that .htaccess and web.config return HTTP 200.
  3. Manually open the files in a browser to confirm they are publicly accessible.
  4. 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.

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.