WordPress Privilege Escalation: How to Check If a Subscriber Already Became an Admin
Patching a privilege escalation flaw does not undo one. Here is how to audit WordPress for rogue admin capability, altered roles, and attacker persistence.
100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin
Skip to main content Skip to footer Opens in a new tabWriting
Longer pieces on authentication, audit logging and the parts of WordPress user administration that are easy to get subtly wrong.
Patching a privilege escalation flaw does not undo one. Here is how to audit WordPress for rogue admin capability, altered roles, and attacker persistence.
WordPress users are network-wide but roles are per-site, which means removing somebody is two hundred separate operations. Nobody finishes that by hand, so nobody starts.
Your security plugin watches logins, roles and sessions. On a store, the changes that actually cost money touch none of those — so nothing notices a refund, a gateway edit, or a webhook quietly forwarding every order somewhere new.
A new client, a departed developer, an agency handover. Twelve accounts you cannot place and no one left to ask. The order to work through it in, and what to change before you touch anything.
The password is irrelevant — the machine was already signed in. What a live session can actually do, what changing the password does not fix, and the twenty minutes that matter.
Not who has access now — who had it, over a year, and what they did with it. Most WordPress sites cannot answer at all, and the ones that can are often producing a document that proves less than everybody assumes.
It started as a convenience for one contractor and it never stopped. Every audit trail on the site is now anonymous. How to find out whether it is happening, and how to unwind it without a fight.
Eight steps, done by somebody who did not write the list, on a day when three other things are also happening. The steps that get missed are always the same ones, and there is a reason.
Moving wp-login.php to a secret URL stops the log noise and almost nothing else. It leaves three authentication channels untouched, it is discoverable in about four requests, and it breaks things quietly. Here is what to do instead, in order.
An attacker does not need database access to erase your logs. They can fill them instead, and let your own retention policy do the deleting. Here is the arithmetic, and the two fixes that are in tension with each other.