A coordinated attack campaign is actively targeting unpatched WordPress plugins to silently take over sites. By weaponizing stored Cross-Site Scripting (XSS) vulnerabilities, attackers run malicious JavaScript directly inside the browser of an authenticated administrator. This script quietly installs unauthorized plugins, adds backdoors, and registers a hidden wordpress admin user that never shows up on your standard Users screen. If your site accepts form submissions or complex product bundles, you need to understand how this infection works and how to detect it.
How the WordPress Stored XSS Campaign Works
Security researchers at Patchstack documented an active WordPress stored XSS campaign in early October 2026. Telemetry identified identical payloads delivered through vulnerabilities across completely different plugins, notably targeting CVE-2026-93836 in WPC Product Bundles for WooCommerce on October 4, followed by CVE-2026-94504 in Ninja Forms on October 5.
Stored XSS happens when unvalidated input gets saved to the database and rendered later without proper HTML escaping. In the WooCommerce bundle flaw, attacker markup slipped through product quantity parameters into order metadata. In Ninja Forms versions through 3.15.3, unencoded textarea fields ran scripts in the legacy submission view. The OWASP overview of cross-site scripting explains the general pattern.
When an authenticated administrator views the compromised order or form submission, the stored script triggers automatically. The browser loads an external script hosted on attacker infrastructure (such as imgcdn1.com), which executes high-privilege actions instantly.
Why Nonces Cannot Stop Authenticated XSS
WordPress developers use security nonces to prevent Cross-Site Request Forgery (CSRF). As outlined in the WordPress developer documentation on nonces, nonces verify that an incoming request originated from the current site and an intended user action.
However, nonces do not protect against Cross-Site Scripting. Because the injected JavaScript executes directly within your active administrative session, the script has full access to the DOM.
The malicious script simply reads valid nonces embedded in the admin markup or retrieves them through background AJAX calls. Once it grabs a valid token, it submits authenticated requests to create users or install plugins without triggering security warnings. HttpOnly cookies do not help either: the script never needs to read your session cookie, because the browser attaches it to every same-site request automatically.
How Attackers Hide a WordPress Admin User
In standard infections, an unauthorized administrator appears in Users > All Users. This campaign uses post-exploitation code designed to conceal the intrusion so the site owner continues normal operations unaware.
The attack script installs a fake plugin, which Patchstack identified by the slug wp-smart-thumbnails, containing an unauthenticated file manager. A second script then writes a must-use plugin into wp-content/mu-plugins/ that hooks into pre_user_query, users_list_table_query_args and views_users. By altering the database query that builds the administrative user list, the code strips the attacker’s account from the table and even lowers the role counts shown above it.
In addition to hiding the user, the implant installs a backdoor login URL (wp-login.php?_wplogin= followed by a token) that logs the holder in as the oldest existing administrator on the site, usually the original owner. To evade file scanners, the malware also backdates the files it drops so their timestamps match the oldest files in the WordPress root, which defeats a search for recently changed files.
Patchstack counts four separate ways back in after one successful run: a visible new administrator, the hidden administrator, the backdoor login URL and the file manager. Removing the vulnerable plugin, or even the fake plugin, closes none of the last three.
How to Find Rogue Admin Users in WordPress
Because the admin interface may be tampered with, you cannot rely on wp-admin to verify user integrity. You must audit the database directly to find rogue admin users in WordPress. The same discipline applies to the wider threats covered in our overview of WordPress security in 2026.
Run a Database Audit in phpMyAdmin
Open your hosting database management tool and run a SQL query against the wp_users and wp_usermeta tables (adjusting for your database prefix):
SELECT u.ID, u.user_login, u.user_email, u.user_registered, m.meta_value
FROM wp_users u
JOIN wp_usermeta m ON u.ID = m.user_id
WHERE m.meta_key = 'wp_capabilities'
AND m.meta_value LIKE '%administrator%';Review every record returned. If you see an unrecognized username, a suspicious email domain, or an account created around the time of unexpected plugin edits, you have found a rogue administrator. Then compare the result with the administrator list in wp-admin: any account that appears in the query but not on the Users screen is being hidden on purpose.
For this campaign, Patchstack lists specific warning signs: usernames that sound routine, such as support, updater, maintenance or backup, and an @wordpress.org email address on a local account. Legitimate WordPress.org staff do not create accounts on your site.
Check Users via WP-CLI
If you have SSH access, WP-CLI is faster than a web interface. Run the following command from the root of your WordPress installation:
wp user list --role=administrator --fields=ID,user_login,user_email,user_registeredBe aware that wp user list loads must-use plugins (even with --skip-plugins) and uses the same user query the implant filters, so the hidden account can be missing here too. Run the SQL query above through wp db query as well and treat any difference as a confirmed compromise.
Compare the command output with your verified team members. Any account not listed in your internal directory must be investigated immediately.
Inspecting the Filesystem for Backdoors
Finding the account is only half the battle. If you delete a wordpress backdoor admin account without removing the persistence implant, the attacker will regain access immediately.
Check wp-content/plugins/ and wp-content/mu-plugins/ for unfamiliar directories. Attackers frequently install standalone plugins containing heavily obfuscated code or web-based file managers hidden behind multiple encoding layers. Must-use plugins load on every request, cannot be deactivated from wp-admin and do not appear on the main Plugins list, so open the folder over SFTP or SSH rather than trusting the dashboard.
Inspect your active theme’s functions.php file and your wp-config.php file for suspicious add_filter calls that target user queries. Even stores following standard WooCommerce security practices can miss hidden files if file integrity monitoring is not active.
Indicators From This Campaign
Patchstack published these indicators. Finding any of them means the site should be treated as compromised:
- A plugin folder named
wp-content/plugins/wp-smart-thumbnails/, posing as “WP Smart Thumbnails” by “MediaPress Labs”. - Must-use plugins named
class-wp-token-validate.phporclass-wp-query-followed by eight hex characters. - The options
fz_emer_done_v1orfz_emer_login_tokensin the options table. The second means a backdoor login token is live. - Requests in your web server logs to
wp-login.phpwith a_wploginparameter, or any reference toimgcdn1.com,/fz/x.jsor/fz/c.php.
Because the files are backdated, search by name and content, not by modification date.
Steps for WordPress XSS Malware Removal
Remediating an active injection requires systematic cleanup. Avoid editing live files haphazardly without a containment strategy. If you are dealing with this right now, our checklist for the first two hours after a WordPress hack covers containment.
- Take an offline snapshot: Before modifying files, secure an untouched backup of your database and filesystem according to the 3-2-1 backup rule for forensic review.
- Remove the persistence first: Delete the malicious must-use plugins and the fake plugin folder before touching accounts, so the hiding code and the backdoor login stop working.
- Delete malicious accounts: Use WP-CLI or direct SQL queries to drop the rogue administrator account from
wp_usersandwp_usermeta. With WP-CLI,wp user deletewith the account ID and the--reassignoption keeps any content attributed to a real user. - Remove dropper files and campaign data: Erase unauthorized plugins, unfamiliar
.phpfiles in upload directories, and abnormal mu-plugins, then delete thefz_emer_done_v1andfz_emer_login_tokensoptions. - Patch vulnerable software: Update Ninja Forms to version 3.15.4 or higher, and update WPC Product Bundles for WooCommerce past version 8.6.6 (the upstream changelog identifies 8.6.7 as the fixed release) to close the initial injection vectors.
- Rotate credentials and salts: Invalidate all user sessions by generating fresh security keys in
wp-config.php, and force password resets for all legitimate administrators. Because the backdoor URL logged attackers in as your oldest administrator, treat that account’s password as compromised even though it was never stolen.
For more detailed remediation workflows, review our comprehensive guide on WordPress malware removal to ensure no persistent scripts remain.
How to Reduce the Risk From the Next Stored XSS Flaw
The attackers reuse the same implant with any stored XSS bug they find, so expect the next vulnerable plugin to be used the same way. A few habits limit the damage:
- Update plugins that handle public input, such as forms, checkout add-ons and review plugins, as soon as a security release is out.
- Use a web application firewall with virtual patching, which can block known exploit payloads before you have updated. Our guide to the web application firewall for WordPress explains the options.
- Review form submissions and orders from an account with the lowest role that can do the job, such as Shop Manager or Editor, rather than a full administrator.
- Monitor the mu-plugins folder and new administrator accounts, and send alerts to an inbox someone reads.
FAQ
How do hackers hide admin accounts in WordPress?
Attackers inject code into WordPress hooks such as pre_user_query, users_list_table_query_args and views_users, usually from a must-use plugin. When an administrator loads the Users screen, the custom code changes the database query and removes specific accounts from the displayed results and role counts.
How can I tell if my WordPress site has a rogue administrator?
Do not check solely through wp-admin. Log in to phpMyAdmin or use wp db query to query the wp_users table directly, looking for unknown emails or recent registration dates with administrative capabilities, and compare the result with the Users screen.
What should I do if an XSS script created an unauthorized user?
Immediately place the site in maintenance mode. Remove the must-use plugins and fake plugin, delete the rogue user, update the vulnerable plugins responsible for the injection, and rotate all WordPress secret keys and database passwords.
What to Do Next to Protect Your Site
Audit your user database right away, update both Ninja Forms and WPC Product Bundles for WooCommerce immediately, and scan your mu-plugins directory for unverified scripts. If you suspect an intrusion and prefer an expert team to clear backdoors safely, our WordPress hacked-site recovery service can identify hidden users and secure your installation completely.
Get a free audit covering security, updates, backups, and performance gaps. Takes 60 seconds to request and costs nothing.
