Skip to content
Misconfiguration Write-up Beginner

How I Takeover Wordpress Admin fiiipay.my

A WordPress installation was reachable in its unconfigured setup state, so anyone could point it at their own remote database and create a fresh administrator account. The author used this to log in to the WordPress admin panel and reported it for a bounty.

Syahrul Akbar Rohmani Follow

Published on medium.com

Bounty$408 View original

{{media:0}}

Syahrul Akbar Rohmani, on 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.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the site fiiipay.my. The researcher started with reconnaissance, visiting the home page and identifying that the site runs WordPress. He then appended /wp-admin to the home URL to reach the admin area, and instead of a login page he was redirected to /setup-config.php.

Text
/wp-admin
Text
/setup-config.php

That path is the WordPress installer's configuration step, which should only be reachable on a site that has not yet been installed. The researcher's reaction, captured in the screenshot, was surprise that the installer was reachable at all.

Image for post
w00t ? From the original on medium.com

He clicked through the installer's prompt, then supplied a new database configuration pointing at a remote MySQL host at freemysqlhosting.net.

Text
https://www.freemysqlhosting.net/

After submitting that configuration, he was redirected to the next installer step, where he created a new WordPress administrator account with a username and password of his choosing.

Text
/wp-admin/install.php
Image for post
Image for post From the original on medium.com

He then logged in to WordPress with those credentials.

Image for post
Image for post From the original on medium.com

The report does not include the requests or responses themselves, only the URLs and the sequence of steps. It also does not describe what data or functionality was reachable after login, beyond the fact that he held administrator access.

The report was sent to AntiHack and the timeline given is:

Date Event
Nov 20, 2018 Report sent to AntiHack
Nov 20, 2018 Status changed to New
Dec 13, 2018 Reward of $300 SGD
Dec 28, 2018 Bounty received

The report gives no severity rating, no CVSS score and no description of a fix.

Root cause

The report points to an exposed WordPress installation routine. The site was serving the setup wizard at /setup-config.php and the install step at /wp-admin/install.php to an unauthenticated visitor, which is the installer's configuration step.. Because the installer accepts a database configuration and then creates the first administrator account, anyone who reaches it can point the site at a database they control and define their own admin credentials. The report does not state why the installer was reachable, so the exact deployment mistake is not documented.

Impact

In the researcher's own account, the result was full administrative access to the WordPress installation, obtained without any existing credentials. From there an attacker holds administrative access to the WordPress installation. The report does not enumerate what was done with that access, so the wider consequences for the site's data and its users are not described here.

How this kind of bug works

WordPress ships with an installer that runs when no configuration file exists. The first request to the site redirects to wp-admin/setup-config.php, which asks for database details, writes them to wp-config.php, and then hands over to wp-admin/install.php, which creates the initial administrator account. The design assumes the installer is only reachable during a short window on a fresh deployment, before the site is live.

When a site goes live with the installer still reachable, that assumption breaks. The installer does not authenticate the caller, because at that point there is no user database to authenticate against. An attacker can therefore supply connection details for a database they control, let WordPress create its tables there, and choose the administrator username and password. The live site then runs against the attacker's database, and the attacker holds the only admin account.

Even where an attacker cannot or does not want to supply an external database, an exposed installer is a strong signal of a misconfigured deployment, and the same class of exposure applies to other setup scripts, admin consoles and default-credential pages that are meant to be removed or locked down after provisioning.

How to test for it

  1. Identify the CMS and its version from page source, response headers, generator meta tags, cookie names and well-known paths.
  2. Request the installer entry points directly rather than relying on the home page redirect. For WordPress these are the setup configuration path and the install path under the admin directory.
  3. Look at the response status and body. A positive result is a setup form or an install form served to an unauthenticated client, not a redirect to a login page and not a 403 or 404.
  4. Confirm without causing damage. Do not complete the installation on a live target. A form that accepts input and proceeds to the next step is enough evidence; if you need to prove the step further, use a database you control..
  5. Check whether the same exposure exists on staging, subdomains and alternate ports, which are often provisioned later and left unfinished.

Common false positives: a cached or static copy of the installer page that does not actually process submissions; a WAF or reverse proxy returning a generic page with a 200 status; an installer that is reachable but refuses to proceed because a configuration file already exists; and a login page that merely looks like a setup form. Always verify that the form actually advances to the next step.

How it is fixed

The standard fix is to complete the installation before the site is exposed, so that wp-config.php exists and the installer redirects to the login page. Where the installer must remain on disk, restrict it at the web server or reverse proxy so that only trusted addresses can reach the setup and install paths, and remove or block the setup files once provisioning is finished. Deployment pipelines should treat a reachable installer as a release blocker, and monitoring should alert on requests to setup and install paths on production hosts.

Hunting notes

This class of bug hides in the gap between provisioning and go-live: new deployments, migrations, cloned environments, subdomains and hosts behind a CDN that were spun up for a launch and never finished. Recon signals include a home page that redirects to a setup path, a wp-config.php that returns a setup form rather than a redirect, and CMS fingerprints on hosts that look freshly created. Directory and file discovery against known installer paths is cheap and worth running on every host in scope.

To get a report accepted, show the unauthenticated request and the response that proves the installer is live, then show that the process advances, for example by reaching the account creation step using infrastructure you control. Stop there. Do not create content, change settings or touch real data, and describe the potential impact in terms of the administrative control the exposure grants rather than what you did with it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

A website is a bit like a shop. Most of it is open to the public, but there is a back room where the owner manages things. On a WordPress site, that back room is called the admin area, and it sits at a web address ending in /wp-admin. Normally, when you visit it, the site asks for a username and password before letting you in.

This report is about a site, fiiipay.my, where the first-time setup screens were still reachable. Worse, the site was still showing its first-time setup screens, the ones you should only ever see once, on the day the site is created. The researcher found those screens open to anyone on the internet, walked through them, and ended up with administrator access.

Let us go through it step by step.

Step 1: Look at what the site is built with

The researcher started with reconnaissance, which simply means looking around before touching anything. He visited the home page, https://fiiipay.my, and checked which content management system (CMS) the site uses. A CMS is the software that builds and runs a website; WordPress is the most common one in the world. He saw that this site runs WordPress.

Why this matters: knowing the CMS tells you which well-known pages and files to look for. Every WordPress site shares the same basic layout, so a tester can guess where things live.

Step 2: Try to reach the admin area

He added /wp-admin to the end of the home address:

Text
/wp-admin

On a healthy site, this address shows a login form. Instead, he was sent somewhere else:

Text
/setup-config.php

That file is part of the WordPress installer, the wizard that runs the very first time WordPress is set up. It asks for database details and then creates the first administrator account. It is meant to be used once, before the site goes live, and then never again.

Image for post
w00t ? From the original on medium.com

The screenshot shows his surprise at landing on the setup screen instead of a login page. That reaction is the whole finding in one image: the front door was replaced by an open building site.

Step 3: Walk through the setup wizard

He clicked the button to continue, then entered database details pointing at a remote MySQL server he controlled, hosted at:

Text
https://www.freemysqlhosting.net/

A database is where a website stores its content, its settings and its user accounts. Think of it as the site's filing cabinet. By supplying a remote database, the researcher was pointing the site's setup at a database outside the target.

After submitting that, he was sent to the next installer page:

Text
/wp-admin/install.php

There he created a new WordPress administrator account, with a username and password of his own choosing.

Image for post
Image for post From the original on medium.com

Why this matters: the installer does not ask who you are, because at that point the site has no user accounts to check against. Anyone who reaches it can define the first administrator.

Step 4: Log in

He then logged in to WordPress with those new credentials.

Image for post
Image for post From the original on medium.com

That is the takeover: administrator access to the site, obtained without any existing password.

The report does not describe what he could see or do after logging in, beyond holding that admin access. It also does not include the actual requests and responses, only the addresses and the order of steps.

What happened next

He reported the issue to AntiHack, and the timeline he gives is:

Date Event
Nov 20, 2018 Report sent to AntiHack
Nov 20, 2018 Status changed to New
Dec 13, 2018 Reward of $300 SGD
Dec 28, 2018 Bounty received

The report gives no severity rating, no CVSS score and no description of a fix.

In general, how this kind of bug works

WordPress ships with an installer that runs when the site has no configuration file yet. The first visitor is redirected to the setup page, which collects database details and writes them into a file called wp-config.php. Then the install page creates the first administrator account. The design assumes this only happens during a short window on a brand new deployment, before the site is public.

When a site goes live with the installer still reachable, that assumption breaks. The installer cannot check who you are, because there are no users yet. So an attacker can point the site at a database they control, let WordPress build its tables there, and pick the admin username and password. The live site then runs on the attacker's database, and the attacker holds the only admin account.

Even without supplying an external database, an exposed installer is a clear sign of a misconfigured deployment. The same pattern applies to other setup scripts, admin consoles and default-password pages that should be removed or locked down once a server is provisioned.

How to test for it

  1. Identify the CMS and its version from the page source, response headers, generator tags, cookie names and well-known paths.
  2. Request the installer pages directly instead of relying on the home page redirect. For WordPress these are the setup configuration path and the install path under the admin directory.
  3. Look at the response. A positive result is a setup or install form served to a visitor who is not logged in, not a redirect to a login page and not a 403 or 404 error.
  4. Confirm without causing damage. Do not complete the installation on a live target. A form that accepts input and moves to the next step is enough evidence; if you must go further, use a database you control..
  5. Check staging sites, subdomains and alternate ports, which are often set up later and left unfinished.

Common false positives: a cached or static copy of the installer page that does not actually process submissions; a firewall or reverse proxy returning a generic page with a 200 status; an installer that is reachable but refuses to proceed because a configuration file already exists; and a login page that merely looks like a setup form. Always verify that the form actually advances to the next step.

How it is fixed

The standard fix is to complete the installation before the site is exposed, so that wp-config.php exists and the installer redirects to the login page. Where the installer must stay on disk, restrict it at the web server or reverse proxy so only trusted addresses can reach the setup and install paths, and remove or block the setup files once provisioning is done. Deployment pipelines should treat a reachable installer as a release blocker, and monitoring should alert on requests to setup and install paths on production hosts.

Hunting notes

This class of bug hides in the gap between provisioning and go-live: new deployments, migrations, cloned environments, subdomains and hosts behind a CDN that were spun up for a launch and never finished. Recon signals include a home page that redirects to a setup path, a wp-config.php that returns a setup form rather than a redirect, and CMS fingerprints on hosts that look freshly created. Directory and file discovery against known installer paths is cheap and worth running on every host in scope.

To get a report accepted, show the unauthenticated request and the response that proves the installer is live, then show that the process advances, for example by reaching the account creation step using infrastructure you control. Stop there. Do not create content, change settings or touch real data, and describe the potential impact in terms of the administrative control the exposure grants rather than what you did with it.

Glossary

  • Reconnaissance: Looking around a target before testing, to learn what software it runs and where things are.
  • CMS (content management system): Software such as WordPress that builds and runs a website, including its content and users.
  • WordPress: A widely used CMS; its admin area lives at /wp-admin.
  • Admin area: The private part of a site where the owner manages content, settings and users.
  • Installer: The first-time setup wizard that configures a site and creates its first administrator account.
  • Database: Where a site stores its content, settings and user accounts, like a filing cabinet.
  • MySQL: A common type of database server.
  • wp-config.php: The WordPress file that holds the database connection details; its presence means the site is already installed.
  • Unauthenticated: Not logged in; a visitor with no account or credentials.
  • Redirect: When a server sends your browser to a different address than the one you asked for.
  • HTTP status code: A number a server returns to describe the result, such as 200 for success, 403 for forbidden and 404 for not found.
  • WAF (web application firewall): A filter in front of a site that blocks suspicious requests.
  • Reverse proxy: A server that sits in front of a site and forwards requests to it.
  • False positive: A finding that looks like a bug but is not actually exploitable.
  • CVSS: A standard scoring system for rating the severity of a vulnerability.
  • Bounty: A reward paid by an organisation for a valid security report.

More by Syahrul Akbar Rohmani

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.