Information Disclosure .htaccess accesible for public
An Apache .htaccess configuration file was publicly accessible on a subdomain, revealing server configuration details. An attacker could download it to learn about CGI execution, PHP include paths, and rewrite rules, which might aid further attacks.
- Fixed in 32 hours
- Paid in 32 hours
- Disclosed after 25 days
Hello team! While doing a preliminary recon on the sub domain of "launchpad.37signals.com" I've come across a few sensitive files that should not be facing the public web; I'll leave you a list organized by criticality and some proof.
Information disclosure of path .htaccess on the subdomain of https://launchpad.37signals.com/
POC url : https://_domainkey.launchpad.37signals.com/.htaccess
Medium priority .htaccess file for https://_domainkey.launchpad.37signals.com
Options +ExecCGI +MultiViews +FollowSymLinks AddHandler cgi-script .cgi php_value include_path "include:../include" RewriteEngine on RewriteCond sprockets.js !-f RewriteRule ^sprockets.js /nph-sprockets.cgi [P,L]
Uncomment the next line to enable Sprockets caching
SetEnv sprockets_generate_output_file true
step to reproduce :
go to the url :https://_domainkey.launchpad.37signals.com/ after add .htacces to the endpoint of url
like https://_domainkey.launchpad.37signals.com/.htaccess
the page says download the content of .htaccess as a popup.
Impact
The publicly accessible .htaccess might be serious as long as those credentials are really being used somewhere (and it seems to me the DBMS isn't facing the public internet anyway). The real impact is that finding such files always grabs the attention of a threat actor, which might give up not so easily influenced by the fact that there might be "more".
Attachments


Not written yet. The AI write-up for this report 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 .htaccess files as static content instead of denying access to them.
Impact
The exposed configuration could reveal server details that might assist an attacker in further exploitation, though the report notes the database is not publicly accessible.
What the attacker needed
None
How it was found
- Go to the subdomain URL.
- Append .htaccess to the URL path.
- The page prompts to download the .htaccess file content.
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 report has not been written yet. The Original tab links to the source.
A .htaccess file is a configuration file used by Apache web servers to control how the site behaves. If it is publicly readable, anyone can see server settings that are normally hidden, which could help an attacker plan other attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.