
BeyondCart Connector <= 2.1.0 - Missing Configuration of JWT Secret to Unauthenticated Privilege Escalation
BeyondCart Connector <= 2.1.0 - Missing Configuration of JWT Secret to Unauthenticated Privilege Escalation
The BeyondCart Connector plugin for WordPress, in versions 1.4.2 through 2.1.0, is vulnerable to Privilege Escalation due to improper JWT secret management and faulty authorization mechanisms within the determine_current_user filter.
This vulnerability allows unauthenticated attackers to craft valid JSON Web Tokens (JWT) and impersonate any user, including administrators, potentially leading to a full site compromise.
This repository provides an automated exploit script that leverages the misconfigured JWT secret to escalate privileges and update administrative user data on vulnerable WordPress installations using the BeyondCart Connector plugin.
requests, pyjwt--url (required): Target WordPress site URL (e.g., http://target.site)--email: New email for the admin user (default: [email protected])--first_name: New first name for the admin user (default: Nxploited)--last_name: New last name for the admin user (default: Nxploited)--username: Username to impersonate (default: superadmin)--password: New password for the user (optional)--id: User ID to escalate to (default: 1, which is typically the admin)--token: Custom JWT token (optional)--output: Write output to a file (optional)After updating the administrator account credentials with this script, you can utilize the "Forgot Password" feature on the WordPress login page.
By entering the newly set email, you can reset and regain full access to the administrator account via the official dashboard.
Upon successful exploitation, the script will display a response similar to:
HTTP/1.1 200 OK
...
{
"id": 1,
"email": "[email protected]",
"first_name": "Nxploited",
"last_name": "Nxploited",
"role": "administrator",
"username": "superadmin"
}
This tool is provided for educational and authorized security testing purposes only.
Any misuse of this tool for unauthorized access or malicious activity is strictly prohibited.
The author assumes no responsibility for any damage caused by the use or misuse of this tool.
By: Nxploited (Khaled Alenazi)