Skip to content
Account takeover Write-up Beginner

ATO of WordPress Website “4 digits €€€€ Bounty in 5 Minute!”

The WordPress installation script was left accessible on a subdomain, allowing anyone to run the installer and create a new administrator account. The attacker could then log in to the WordPress admin panel and control the site.

Ritesh Gohil Follow

Published on riteshgohil-25.medium.com

As I promised, I would like to explain how I was awarded my first 4 digit bounty in 5 minutes! Without Delay, Let's get started to understand this vulnerability.

Ritesh Gohil, on riteshgohil-25.medium.com

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 WordPress installation script (install.php) was not removed or blocked after setup, so it remained publicly accessible and allowed creating a new admin account.

Impact

An attacker could gain full administrative control of the WordPress site, including uploading files and changing configuration.

What the attacker needed

WordPress install.php is publicly accessible; No authentication needed

The fix

The installation script should be removed or blocked after WordPress setup, and the site should be checked to ensure install.php is not publicly accessible.

How it was found

  1. Find the endpoint /wp-admin/install.php using waybackurls.
  2. Open the endpoint and click the Install WordPress button, then register an email address.
  3. Use the confirmation link to set a new password.
  4. Go to wp-login.php and log in with the registered email address.
  5. Access the WordPress admin panel.

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.

WordPress normally has a setup page that is used only once when the site is first created. If that page is still reachable later, anyone can pretend the site is new and create their own administrator login. The attacker then has full control over the website.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Ritesh Gohil

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.