100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps

Back to Blog

You reset their password. They still have access.

Changing a WordPress password does not revoke application passwords. That is not a bug — it is what they are for. Which means the standard response to a compromised account leaves one door open.

Operations

Somebody's account is compromised, or somebody has left, or a credential turned up somewhere it should not have. You do the obvious thing: change the password.

WordPress signs their other sessions out. The login form stops accepting the old credential. XML-RPC stops accepting it. The REST API stops accepting it.

And their application password keeps working.

This is not a bug

Application passwords have shipped in core since WordPress 5.6. They exist so a script, a mobile app, a deployment pipeline or a cron job can authenticate without a human present, over HTTP basic auth against the REST API.

A credential built for unattended use has to survive the things that interrupt interactive sessions. If changing your password revoked every integration you had ever set up, nobody could use them for anything. The same reasoning is why they deliberately bypass two-factor: demanding a TOTP code from a scheduled job at 3am would be incoherent.

So the behaviour is correct. It is also almost universally unknown, and the gap between those two facts is where the incidents live.

You can confirm it yourself in about a minute. Search WordPress core for calls to WP_Application_Passwords::delete_all_application_passwords(). In WordPress 7.0 there is exactly one, in the REST controller that exists to delete them on request. Nothing in the password-change path calls it. Nothing in the profile-update path calls it. There is no code in core that revokes an application password because a password changed, because there was never meant to be.

What that means in practice

A password reset closes three of WordPress's four authentication channels:

ChannelClosed by a password change?
wp-login.phpYes
XML-RPCYes
REST API via application passwordNo
Existing session cookiesYes — core destroys other sessions

Three out of four looks like a fix. It is the same shape as a locked front door and an open side gate, and it is worse than an obviously incomplete response because it feels finished.

The person you were worried about now has a credential that:

  • Still authenticates
  • Is not visible on the Users screen
  • Does not appear in most activity logs
  • Skips two-factor by design
  • Has no expiry unless somebody set one
  • Was probably named something forgettable, two years ago, by somebody who has also left

Why nobody notices

Application passwords are almost perfectly invisible in a default WordPress install.

They live on the individual user's profile page, near the bottom, below the fold. There is no site-wide list. Nothing in the admin will ever tell you that eleven accounts hold nineteen credentials between them, or that four of those have not been used since 2024, or that one of them belongs to an account you disabled last spring.

To audit them without tooling, you would visit every user's profile in turn. On a site with forty users nobody does this once, let alone quarterly.

Meanwhile they accumulate. A migration two years ago. A mobile app somebody tried and abandoned. A monitoring service you no longer pay for. An integration built by an agency you replaced. Each one was created for a reason, each reason expired, and none of them expired the credential.

The four things that actually work

1. Disable the account, don't just change the password

Disabling is the operation that closes all four channels at once — including application passwords, by making them unavailable for that user, not merely by rejecting one of them.

It is also the operation WordPress does not have. There is no disabled flag in core; a user exists or is deleted. Anything in between is bolted onto the authentication stack, which is why the quality of a disable feature depends on how many front doors it knows about.

And it deletes nothing. Their posts, comments and order history stay where they are, which is what makes it a decision you are allowed to get wrong.

2. Make the reset revoke them, deliberately

If you want a password reset to take the application passwords with it, that has to be a setting somebody turned on — because for a legitimate user it breaks every integration they had, and the person resetting the password is frequently not the person who set those up.

The honest arrangement is: off by default, clearly labelled, and on for the sites that have decided they want it. Turning it on quietly would break production integrations at 3am for a reason nobody could trace.

3. Give them an expiry and an idle revocation

Two different controls, and the second is the one that does the work.

A default lifetime stamped on new credentials is useful going forward. It does nothing about the nineteen that already exist — stamping a TTL cannot retroactively apply to a credential that was issued without one, and any tool that claims otherwise is doing something you should look at closely.

Idle revocation is what reduces exposure over time: revoke anything unused for N days. A credential minted for a migration in 2024 and never used since is pure risk with no remaining benefit, and it is the single most common thing found on a first audit.

4. Look at the list

Not the policy — the list. Which accounts hold credentials, when each was created, when it was last used, and from where.

The "last used" column is the one that turns a vague anxiety into a work item. It converts "we have some API credentials somewhere" into fourteen rows, nine of which have not been touched in a year.

A site-wide list of issued application passwords: user, credential name, created date, last used date and the address it was last used from. Alongside credentials used yesterday sit "Bulk import tool", never used since it was issued, and "Migration — Sept 2024", last used twelve days after it was created and not since.
Created is the column every list gives you. Last used is the column that tells you what to do.

While you are there: who should hold one at all?

On most sites the honest answer is: a handful of people, and no customers.

Restricting application passwords to specific roles, or turning them off site-wide if nothing uses them, removes an entire authentication channel from your attack surface at close to zero cost. A subscriber on a membership site has no reason to be able to mint an API credential, and on many sites nobody has noticed they can.

There is a second half to this. If you have an IP allowlist on your login form, does it apply to the REST API? On a lot of setups it does not — the allowlist covers wp-login.php and the API sits outside it. An allowlist with a hole in it is worth knowing about, and the same goes for country rules and lockouts.

The one-line version

A password change is not a revocation. Anything that authenticates without a password — application passwords, passkeys, an OAuth session — survives it, because that is what it was designed to do.

Which means the standard response to a compromised WordPress account is incomplete by default, and the missing step is the invisible one.

—

*ITX UserOps disables across all four authentication channels in the free plugin, documented here. The site-wide application password inventory, role restrictions, default lifetimes and idle revocation are premium — documented here.*

A clearer WordPress admin
starts here.

Start with the free plugin. Add more control when you need it.

Log in

Vote on ideas, submit your own and join the discussion.