ArticlesSecurity

WordPress User Registration Security: Stopping Privilege Escalation

Open sign-ups on a WordPress site raise two questions: what role a new account gets, and whether a stranger can trick the form into making them an administrator. This guide covers how registration works, real plugin flaws that allowed admin sign-ups, and a checklist for locking things down.

Hoke DesignsWritten byHoke Designs November 28, 2026 7 min read Infographic inside
WordPress User Registration Security: Stopping Privilege Escalation
Worth remembering
How Open Sign-Ups Can Hand Out Admin Access
Registration plugin flaws have let strangers sign up as administrators without logging in
9.8CVSS severity score of each listed registration flaw
Never pair open sign-up with Admin
"Anyone can register" plus an Administrator default role lets anyone take over your site.
Recheck settings from time to time
An attacker exploiting another flaw can turn on registration and set the default role themselves.
Block bot sign-ups
Add anti-spam protection to registration forms to cut fake accounts and clutter.
Keep tested, off-site backups
If an attacker gains admin access, a clean backup is often the fastest way back.
Treat unknown admins as a compromise
Deleting the account may not be enough. Change passwords and check for unfamiliar plugins and files.
Source: CYFIRMA, Patchstack, published CVE advisoriesHoke Designs

At a glance

The short version

This infographic sums up the article on one page. Save it, share it with your team, or read on for the detail and the sources behind it.

Download

In this article · 7 sections · 7 min

  1. 01How WordPress Decides Who Can Register
  2. 02The One Combination You Should Never Have
  3. 03When Plugins Become the Front Door
  4. 04Fake-Account Abuse: The Quieter Problem
  5. 05A Practical Checklist for Locking Down Sign-Ups
  6. 06Why This Is Worth Handing to Someone Who Watches Closely
  7. 07Key Takeaways

On a standard WordPress install, nobody can sign up on your website unless you or a plugin turns registration on. Once sign-ups are open, through the core setting, a shop’s customer accounts, or a membership or course plugin, the real question changes. You need to know what role a new account gets, and whether a stranger can trick the form into handing them a more powerful one.

That second risk is called privilege escalation. It is one of the most damaging WordPress problems because the attacker doesn’t need to guess a password. They simply register as an administrator. The sections below cover how sign-ups work, where they go wrong, and what you can check today.

How WordPress Decides Who Can Register

Two core options control open registration. Patchstack explains that WordPress stores them as users_can_register and default_role, and that users_can_register is off by default. In the dashboard, you’ll find both under Settings → General:

  • Membership: “Anyone can register” turns public sign-up on or off.
  • New User Default Role sets the role every new registrant receives.

The roles range from Subscriber, which can do little more than manage its own profile, up to Administrator, which can install plugins, edit code and delete other users. If you want a refresher on what each role can do, the WordPress.org guide to roles and capabilities is a good next read.

The One Combination You Should Never Have

WordPress will let you turn on “Anyone can register” and also set the default role to Administrator. A WordPress core Trac ticket calls that combination an obvious attack vector. With both settings in place, anyone on the internet can make themselves an administrator of your site.

WPBeginner’s guidance is blunt: Subscriber should always be the default role, and Administrator should never be, because a new user could take over the site and lock the owner out.

This doesn’t only happen by accident. Patchstack notes that an attacker who finds a flaw letting them change arbitrary options can turn registration on and set the default role to administrator themselves. So even if you set these correctly years ago, check them again from time to time.

When Plugins Become the Front Door

Most sites that accept sign-ups use a plugin to do it. That might be a membership or community plugin, a course platform, a booking system, or a shop with customer accounts. These plugins build their own registration forms, and that is where the most serious bugs keep appearing. Some recent examples:

The Pattern Behind These Bugs

Most of these flaws share a root cause. The registration form accepts a role, or a membership level tied to a role, from the visitor’s browser and trusts it. An attacker doesn’t need your login page at all. They send a crafted sign-up request that says “make me an administrator,” and the plugin does it. That is why unauthenticated shows up in nearly every one of those titles. No existing account is required.

Fake-Account Abuse: The Quieter Problem

Even when roles are locked down correctly, open sign-ups attract automated junk registrations. Bots create accounts to post spam comments and fill your user list with throwaway emails. They also probe for weaknesses. Every extra account is a logged-in user that plugin code has to treat correctly. Any flaw that only affects “authenticated” users, such as Subscriber-level bugs, now matters on your site, because anyone can become authenticated.

For a tour operator taking bookings, a shop with customer accounts or a course site, fake accounts also clutter your customer records and email lists. That makes real customers harder to serve.

A Practical Checklist for Locking Down Sign-Ups

Work through these steps in order. Most take only a few minutes.

  1. Decide whether you need registration at all. If visitors don’t need accounts, uncheck “Anyone can register” in Settings → General.
  2. Confirm the default role is Subscriber. If your shop or membership plugin uses its own customer role, make sure the core default still isn’t anything with editing powers.
  3. Review your Users list. Filter by Administrator and confirm you recognize every account. Do the same for Editor and Shop Manager, or similar roles.
  4. Inventory every plugin that creates accounts. This includes membership, LMS, booking, form-builder and e-commerce plugins. Remove any you no longer use rather than just deactivating them.
  5. Update promptly. Every example above was fixed in a later version. Sites that stayed on old versions were the ones exposed.
  6. Watch vulnerability notices for your plugins. Wordfence and Patchstack both publish databases you can search by plugin name.
  7. Check which membership levels map to which roles. Make sure no level, including inactive or test levels, grants an administrative role.
  8. Add anti-spam protection to registration forms. This cuts down bot sign-ups and fake-account clutter.
  9. Keep tested, off-site backups. If an attacker does gain admin access, a clean backup is often the fastest way back.

If You Find an Administrator You Don’t Recognize

Treat it as a likely compromise, not a curiosity. Deleting the account may not be enough. An attacker with admin access can install backdoor plugins, add code to theme files or create additional users. Change all admin passwords, check for unfamiliar plugins and files, and bring in someone experienced with WordPress incident cleanup before assuming the site is safe again.

Why This Is Worth Handing to Someone Who Watches Closely

None of these vulnerabilities required the site owner to do anything wrong. A plugin that worked perfectly on Monday can carry a published, actively exploited 9.8-rated flaw by Friday. Staying safe means knowing which of your plugins handle sign-ups, reading advisories as they come out, and applying fixes before attackers scan for them. That is hard to fit around running a business, especially during a busy season.

Hoke Designs is a family-owned studio in Juneau that has designed websites since 2007, and we offer managed hosting alongside design and development. Many of the features our clients ask about involve user sign-ups: e-commerce stores, reservations and appointment booking, and online courses. If your site has open registration or customer accounts and you aren’t sure how it’s configured, our support desk at support.hokedesigns.com is a reasonable place to start the conversation.

Key Takeaways

  • WordPress registration is off by default. Turning it on, or installing a plugin that does, opens a door you need to watch.
  • Never combine “Anyone can register” with an Administrator default role. Subscriber is the safe default.
  • Membership, course, registration and shop plugins are a common source of critical privilege escalation flaws, often exploitable without logging in.
  • Audit your admin users, remove unused plugins, update quickly and keep clean backups.
  • An unfamiliar administrator account means a likely compromise and calls for a full cleanup, not just a deletion.

If you’d like a hand reviewing who can sign up on your site, call (424) 209-8199 or send a message through our contact form, and a person will reply within one business day.

Images are presented for illustration purposes only.We use real photographs when we need to show what was happening at a real event.

#tips#vulnerabilities

Keep reading

More on Security

All Security articles All articles

Hoke Designs

Questions about your own website?

Talk to the team that writes these articles and looks after dozens of sites every day. You’ll get a straight answer.