CodeAstro Pharmacy Management System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in CodeAstro Pharmacy Management System version 1.0. The issue resides in the Login component, specifically within the 'index.php' file. The vulnerability allows remote attackers to inject malicious SQL queries through the 'username' parameter, exploiting insufficient input validation. This could lead to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for unauthorized database access, manipulation of data, and leakage of sensitive information. It poses a significant threat to system security and data integrity.

Reproduction

The vulnerability can be reproduced by sending a POST request to 'index.php' with the 'username' parameter. Injected SQL payloads can be used to exploit the time-based blind SQL injection vulnerability, such as using a payload that includes a SQL injection command that causes a delay, indicating the injection was successful.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
8.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

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