LalanaChami Pharmacy Management System Privilege Escalation Vulnerability

Vulnerability

A vulnerability in the LalanaChami Pharmacy Management System, specifically in commit 5c3d028, allows unauthenticated remote attackers to escalate privileges by self-assigning an administrative role during registration. The issue arises because the /api/user/signup endpoint does not properly validate the role parameter in the request body. Additionally, the application exposes several critical API endpoints without authentication, enabling unauthorized access to sensitive data and operations.

Impact

Exploitation of this vulnerability could lead to unauthorized access to administrative privileges, allowing attackers to manipulate user roles and access sensitive data. Furthermore, according to the vendor, this vulnerability could be exploited to access and modify healthcare-related information, potentially violating HIPAA regulations.

Reproduction

The vulnerability can be reproduced by sending a POST request to the /api/user/signup endpoint with a self-assigned administrative role. The request will be accepted without proper validation, granting the attacker administrative privileges.

Remediation

To address this vulnerability, authentication middleware should be added to the /api/user/signup endpoint to validate user roles before granting privileges. Additionally, all critical API endpoints should be secured with authentication to prevent unauthorized access.

Added: May 19, 2026, 4:23 PM
Updated: May 19, 2026, 4:23 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.0
exploitability
9.1
remediation
0.0
relevance
8.8
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.