SourceCodester Web-Based Pharmacy Product Management System SQL Injection Vulnerability in edit-admin.php

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Web-Based Pharmacy Product Management System version 1.0. The issue arises in the file edit-admin.php, where the ID parameter is not properly validated, allowing authenticated remote attackers to manipulate SQL queries. This vulnerability has been confirmed through automated testing with sqlmap, which successfully identified the injection point and demonstrated the ability to exploit it.

Impact

Exploitation of this vulnerability allows for unauthorized manipulation of SQL queries, leading to potential database enumeration, extraction of sensitive data, and possibly unauthorized data modification.

Reproduction

The vulnerability can be reproduced by sending a request to the edit-admin.php file with a crafted ID parameter that exploits the SQL injection flaw. This can be done manually or using automated tools like sqlmap, which can automate the process of finding and exploiting SQL injection vulnerabilities.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, implement strict input validation and whitelisting for user-supplied data. Regular code security reviews and security testing should also be conducted.

Added: May 4, 2026, 9:18 AM
Updated: May 4, 2026, 9:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
6.6
remediation
0.0
relevance
7.5
threat
6.4
urgency
2.9
incentive
0.0

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