Skip to content
Info disclosure Disclosed report Beginner

files likes of README.md is public

The public web server exposed a README.md file and returned a 403 Forbidden for the .htaccess file, revealing that the file exists. An attacker could read the README to learn about the application's configuration and security disclosure process.

pulkit_pandey Follow

Originally disclosed on HackerOne

  • Triaged in 19 days
  • Fixed in 3 months
  • Disclosed after 4 months

A readme (or read me) file contains information about other files in a directory or archive and is commonly distributed with computersoftware. Such a file is usually a text file called README.TXT, README.md, README.1ST, READ.ME, or simply README, although someMicrosoft Windows software may occasionally include a README.WRI, README.RTF, or README.DOC. The name is chosen so that users unaware of the existence of this type of file would be drawn to read it. It is traditionally written in upper case so that on case-preserving environments using an ASCIIbetical ordering, the name will appear near the beginning of a directory listing (since upper-case letters sort before lower-case letters in ASCIIbetical ordering)..

for more see http://en.wikipedia.org/wiki/README

content of README.md

Localize

We believe that everybody should be able to use software in their own language.

Localize takes care of all the background work. You can concentrate on great apps and perfect translations.

Invite staff members to collaborate with assigned roles, let users contribute and export translations in seconds.

If you talk to a man in a language he understands, that goes to his head. If you talk to him in his language, that goes to his heart. — Nelson Mandela

Live website: www.localize.im

Configuration

All configuration is done in config.php in the root directory.

Contributing

We welcome any contribution, no matter how small or large. Please fork this repository, apply your changes, and submit your contributions by sending a pull request.

Security

Disclose bugs and vulnerabilities or read more about security.

License

Copyright (C) 2013 www.delight.im <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see {http://www.gnu.org/licenses/}.

and one thing more https://www.localize.im/.htaccess

it is showing Forbidden

You don't have permission to access /.htaccess on this server.

The error is generated when there is no index file in the requested directory and the server or application is not configured to reveal the directory contents. This, however, indicates that the directory exists. For Further Reading: en.wikipedia.org

http://en.m.wikipedia.org/wiki/Webserver_directory_index

If the server is unable to find a file with any of the names listed in its configuration, it may either return an error (generally 404 Not Found) or generate its own index page listing the files in the directory. It may also return a 403 Index Listing Forbidden. Usually this option is also configurable

solution:-

To resolve this error you have to Edit .htaccess file

Please clean the file and add the following code

RewriteEngine on

<IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

The original report as published on HackerOne, by pulkit_pandey. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 configured to serve static files such as README.md without restricting access, and the .htaccess file was blocked but its existence was still revealed by the 403 response.

What the attacker needed

None

The fix

The .htaccess file could be edited to add rewrite rules routing requests to index.php.

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 README file is a text file that often comes with software and explains what it does. Here, the website let anyone read its README, which mentioned a config file and a security contact. The .htaccess file was blocked, but the error message still confirmed the file was there.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by pulkit_pandey

View all

1 more disclosed report, best first.

More from Localize

View all

The newest disclosed reports for this program.

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.