Sourcecodester Pharmacy Point of Sale System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in Sourcecodester Pharmacy Point of Sale System version 1.0. The issue resides in the 'view_receipt.php' file, where user input is not properly sanitized, allowing attackers to manipulate SQL queries and potentially access or modify database information.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a GET request to 'pharmacy/view_receipt.php' with a crafted 'id' parameter that includes SQL injection payloads. For example, an injection could be performed by using 'id=1' followed by a SQL injection payload that exploits the application's SQL query handling. The response should indicate successful exploitation, such as returning database version information or other database contents.

Added: Mar 2, 2026, 6:28 PM
Updated: Mar 2, 2026, 9:10 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
2.5
exploitability
9.1
remediation
0.0
relevance
3.4
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.