Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1577+ Articles
153+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2021-47932: WordPress TheCartPress 1.5.3.6 Privilege
CVE-2021-47932: WordPress TheCartPress 1.5.3.6 Privilege

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2021-47932

CVE-2021-47932: WordPress TheCartPress 1.5.3.6 Privilege

TheCartPress WordPress plugin 1.5.3.6 allows unauthenticated attackers to register new administrator accounts by exploiting the AJAX handler with a...

Dylan H.

Security Team

May 11, 2026
6 min read

Affected Products

  • WordPress TheCartPress Plugin <= 1.5.3.6

Executive Summary

A critical privilege escalation vulnerability (CVE-2021-47932) has been identified in the TheCartPress plugin for WordPress, affecting version 1.5.3.6 and earlier. The flaw carries a CVSS score of 9.8 and allows unauthenticated attackers to create new WordPress administrator accounts on any affected site.

The root cause is an unprotected AJAX handler (tcp_register_and_login_ajax) that accepts user-controlled role values without authentication or authorization checks. An attacker can POST a crafted request setting tcp_role to administrator, causing the plugin to register a fully privileged account — giving the attacker complete control over the WordPress installation.

All WordPress sites running TheCartPress version 1.5.3.6 or earlier should update or deactivate the plugin immediately.


Vulnerability Overview

AttributeValue
CVE IDCVE-2021-47932
CVSS Score9.8 (Critical)
CWECWE-269 — Improper Privilege Management
TypeUnauthenticated Privilege Escalation / Admin Account Creation
Attack VectorNetwork
Privileges RequiredNone (unauthenticated)
User InteractionNone
ScopeChanged
Confidentiality ImpactHigh
Integrity ImpactHigh
Availability ImpactHigh
Patch AvailableCheck plugin repository for updated release

Affected Versions

PluginAffected VersionsFixed Version
TheCartPress<= 1.5.3.6Update to patched release

Technical Analysis

Root Cause

TheCartPress 1.5.3.6 registers an AJAX action — tcp_register_and_login_ajax — that is accessible to unauthenticated users (wp_ajax_nopriv_). The handler processes user registration including role assignment. Critically, the tcp_role parameter accepted in the POST body is not validated against an allowed set of safe values.

An attacker can pass tcp_role=administrator directly in the registration request. Because the handler does not verify whether the requester is authorized to assign elevated roles, it creates a WordPress user with administrator capability.

Attack Flow

1. Attacker identifies a WordPress site running TheCartPress &lt;= 1.5.3.6
2. Attacker sends an unauthenticated POST request:
   POST /wp-admin/admin-ajax.php
   action=tcp_register_and_login_ajax
   &tcp_user_login=attacker_user
   &tcp_user_email=attacker@evil.com
   &tcp_user_pass=AttackerPassword123!
   &tcp_role=administrator
3. Plugin processes the registration without validating tcp_role
4. WordPress creates a new user with administrator role
5. Attacker logs in with the new credentials
6. Full WordPress admin access: themes, plugins, files, database, users
7. Attacker installs a webshell plugin or adds a backdoor PHP file

Exploitation Conditions

  • TheCartPress version 1.5.3.6 or earlier must be installed and active
  • No authentication required
  • No other preconditions — attack is fully remote and unauthenticated
  • Exploit can be automated; no user interaction on the victim side

Impact Assessment

Impact AreaDescription
Full Admin TakeoverAttacker gains WordPress administrator privileges
Site DefacementAdmin can modify themes, content, and appearance
Webshell InstallationMalicious plugins or PHP file uploads for persistent RCE
User Data TheftAccess to all WordPress user accounts, emails, and metadata
WooCommerce / eCommerce CompromiseOrder data, customer PII, payment details accessible
SEO PoisoningInjection of spam links or malicious redirects
Hosting PivotShared hosting environments can expose adjacent sites
Ransomware StagingPlatform for hosting phishing or malware delivery infrastructure

Immediate Remediation

Step 1: Update or Deactivate TheCartPress

Check the plugin repository for a patched version of TheCartPress. If no patch is available, deactivate and remove the plugin immediately.

# Via WP-CLI — check current version
wp plugin get thecartpress --field=version
 
# Update if a new version is available
wp plugin update thecartpress
 
# If no patch exists — deactivate and delete
wp plugin deactivate thecartpress
wp plugin delete thecartpress

Step 2: Audit for Unauthorized Administrator Accounts

# List all administrator accounts
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
 
# Check for recently created admin accounts (last 7 days)
wp db query "SELECT ID, user_login, user_email, user_registered
             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%'
               AND u.user_registered > DATE_SUB(NOW(), INTERVAL 7 DAY);"
 
# Remove suspicious accounts
wp user delete <suspicious_user_id> --reassign=<trusted_admin_id>

Step 3: Block the Vulnerable AJAX Action (Temporary Workaround)

If the plugin cannot be deactivated immediately, block the vulnerable AJAX endpoint at the server level:

# Nginx — block the vulnerable action
location /wp-admin/admin-ajax.php {
    if ($arg_action = "tcp_register_and_login_ajax") {
        return 403;
    }
}
# Apache — block via RewriteRule
RewriteCond %{QUERY_STRING} action=tcp_register_and_login_ajax [NC]
RewriteRule ^ - [F,L]

Step 4: Harden WordPress User Registration

# Disable open user registration if not needed
wp option update users_can_register 0
 
# Set default role to subscriber (never administrator)
wp option update default_role subscriber
 
# Regenerate WordPress secret keys to invalidate existing sessions
wp config shuffle-salts

Detection Indicators

IndicatorDescription
New administrator accounts created in last 24-72 hoursPost-exploitation account creation
POST requests to admin-ajax.php with tcp_register_and_login_ajax actionActive exploitation attempt
Admin logins from unfamiliar IPs or geolocationsUnauthorized admin session
New plugins installed or file system changesPost-exploitation persistence
Unusual content changes, injected links, or redirectsActive defacement or SEO spam

Post-Remediation Checklist

  1. Update or remove TheCartPress plugin immediately
  2. Audit all administrator accounts — delete any that are unauthorized
  3. Reset passwords for all legitimate administrator accounts
  4. Regenerate WordPress secret keys to invalidate all active sessions
  5. Scan for webshells in wp-content/ and plugin directories
  6. Review plugin list for unauthorized installations
  7. Check file modification timestamps for PHP files altered after the attack window
  8. Enable two-factor authentication on all administrator accounts
  9. Deploy a WAF with WordPress hardening rules (Wordfence, Cloudflare)
  10. Monitor admin user creation with an alerting plugin or SIEM integration

References

  • NVD — CVE-2021-47932
  • WordPress Plugin Repository — TheCartPress
  • CWE-269 — Improper Privilege Management
  • OWASP — Broken Access Control
#CVE-2021-47932#WordPress#TheCartPress#Privilege Escalation#AJAX#Account Creation#CWE-269

Related Articles

CVE-2026-3629: WordPress User Import Plugin Privilege

The Import and export users and customers plugin for WordPress is vulnerable to privilege escalation in all versions up to 1.29.7, allowing authenticated...

5 min read

CVE-2025-6254: WordPress Doctreat Core Plugin Privilege Escalation (CVSS 9.8)

A critical unauthenticated privilege escalation vulnerability in the Doctreat Core WordPress plugin allows attackers to register with elevated roles,...

3 min read

CVE-2026-9851: WordPress Booking Package Plugin Privilege Escalation via Account Takeover

A high-severity privilege escalation vulnerability in the Booking Package WordPress plugin allows unauthenticated or low-privileged attackers to take over…

2 min read
Back to all Security Alerts