Skip to content
Info disclosure Disclosed report Beginner

Install.php File Exposure on Drupal

The install.php file in Drupal's core directory was accessible and returned a 200 status code, even though installation was not possible. An attacker could repeatedly access this file to cause a denial of service, and the report also mentions an error that might be used to escalate privileges.

carpc Follow

Originally disclosed on HackerOne

  • Triaged in 12 hours
  • Fixed in 24 days
  • Disclosed after 32 days

In the security assessment, it was discovered that the install.php file located at ██████/core/install.php is accessible and returns a 200 status code. Since the installation process is not possible, it is essential to address the vulnerability of the install.php file as soon as possible to prevent potential attacks and ensure the availability of the website. It is important to take measures to remove or secure the file to prevent it from being accessed by attackers and causing a denial of service attack. This is crucial to prevent the website from crashing and overwhelming the system, which can lead to serious problems for the website and its users.

Obs:

  • Use the drupwn tool, found at https://github.com/immunIT/drupwn
  • Run the command: python3 ./drupwn --mode enum --target ██████/
  • The tool will reveal the install.php script with a status of 200 OK.

████

Summary

The install.php file, which is meant to be removed after the initial installation of Drupal, has been left in place and is accessible to attackers. This file can be used to reinstall the website, potentially leading to data loss or other issues. Additionally, it was observed that the website encountered an unexpected error of Drupal\Component\Plugin\Exception\PluginNotFoundException: Unable to determine class for field type 'comment' which can be used to escalate privilege and access sensitive information.

Proof Of Concept

Proof of Concept: A screenshot demonstrating the install.php file being accessible and the error is displayed █████████

My IP Report: ████

References

Impact

By accessing the install.php file, an attacker could potentially reinstall the website, leading to data loss or other issues. Additionally, the error displayed may also be used to escalate privilege and access sensitive information.

System Host(s)

█████████

Affected Product(s) and Version(s)

Drupal 8 or >

CVE Numbers

Steps to Reproduce

  1. Open a web browser and navigate to █████/core/install.php
  2. Observe that the install.php file is accessible and returns a 200 status code

Suggested Mitigation/Remediation Actions

The install.php file should be removed from the website to prevent unauthorized access and the error should be fixed to prevent privilege escalation. Additionally, it is recommended to review all the configurations and modules to verify if there are any misconfigurations or vulnerabilities.

It is important to note that an attacker could use this vulnerability to cause a significant amount of stress on the website by repeatedly accessing the install.php file, potentially causing the website to crash. This is why it's important to report this vulnerability and fix it as soon as possible.

The original report as published on HackerOne, by carpc. 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

Impact

An attacker could repeatedly access the file to cause a denial of service, and the displayed error might be used to escalate privileges and access sensitive information.

What the attacker needed

None

The fix

The install.php file should be removed from the website, and the error should be fixed to prevent privilege escalation.

How it was found

  1. Open a web browser and navigate to the install.php path under core.
  2. Observe that the file is accessible and returns a 200 status code.

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.

After installing Drupal, a setup file called install.php should be deleted so nobody can run the installer again. Here it was left on the server and could be opened by anyone. The report says an attacker could keep requesting it to overload the site, and it also shows an error message that might leak information.

What is Info disclosure?

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

More by carpc

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

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.