Skip to content
Info disclosure Disclosed report Beginner

Development configuration file

Configuration files such as composer.json and composer.lock were publicly downloadable from a production host. An attacker could read them to learn about the application's dependencies and use that information to plan further attacks.

Muhammad Asim Shahzad Follow

Originally disclosed on HackerOne

Critical View original
  • Fixed in 22 days
  • Disclosed after 8 months

Hello, I found an Sensitive Information Disclosure. A configuration file (e.g. Vagrantfile, Gemfile, Rakefile, ...) was found in this directory. This file may expose sensitive information that could help a malicious user to prepare more advanced attacks. It's recommended to remove or restrict access to this type of files from production systems.

#POC https://go.pushwoosh.com/composer.json https://go.pushwoosh.com/composer.lock

Open these URLs a configuration file will become download and these files contains very sensitive data.

###IMPACT: These files may disclose sensitive information. This information can be used to launch further attacks.

###PATCH Remove or restrict access to all configuration files accessible from internet.

Thanks,

The original report as published on HackerOne, by protector47. 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 from the project root, so dependency manifest files were reachable over HTTP.

Impact

The exposed files may reveal dependency and version information that could help an attacker prepare more advanced attacks.

What the attacker needed

None

The fix

Configuration files should be removed from the web root or access to them should be restricted so they are not reachable from the internet.

How it was found

  1. Open the first listed URL for the dependency manifest file.
  2. Open the second listed URL for the lock file.
  3. Observe that the files download and contain sensitive data.

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.

Some projects keep small text files listing the libraries they use. If left on a public web server, anyone can download them and see what software is running, which may help 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.

More by Muhammad Asim Shahzad

View all

4 more disclosed reports, best first.

More from Pushwoosh

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.