SourceCodester Simple Cafe Billing System SQL Injection Vulnerability in Sales Report File

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Simple Cafe Billing System version 1.0. The issue resides in the sales_report.php file, where the month parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, potentially leading to unauthorized database access, data modification or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which could result in unauthorized database access, manipulation or deletion of data, and access to sensitive information.

Reproduction

To reproduce this vulnerability, send a request to the sales_report.php file with a crafted month parameter that includes malicious SQL code. This can be done using SQL injection 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, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Aug 30, 2025, 7:18 PM
Updated: Aug 30, 2025, 7:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.6
exploitability
6.0
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
1.7

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