Drupal Website Takeover | Admin Dashboard
A Drupal site was left with its installation script accessible, so an attacker could complete the installation and create an administrator account. This allowed the attacker to take over the admin dashboard of the website.
In this writeup I will tell you how I was able to become the admin of a Website.
The full write-up lives on its author's site
It belongs to its author, 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 Drupal installation script was left accessible after setup, allowing anyone to run the installer and create an administrator account.
Impact
An attacker could take over the admin dashboard of the website, gaining full control.
What the attacker needed
Drupal installation script accessible; No authentication required
The fix
The installation script should be removed or access to it restricted after setup, and the site should be properly installed.
How it was found
- Run a light nuclei scan with a rate limit to avoid the WAF.
- Notice Drupal technology and a URL ending in /core/install.php in the scan results.
- Open the installation URL in a browser.
- Follow the installation steps to create an administrator account.
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.
When a website is set up, the software often has an installation page that lets you create the first administrator account. If that page is left open after setup, anyone can visit it and finish the installation themselves, giving them full control. Here, the Drupal content management system's installer was still reachable, so the researcher used it to become the site's admin.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.