SourceCodester Best Salon Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Best Salon Management System version 1.0. The issue resides in the booking.php file, where the serv_id 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 be used to access, modify, or delete database information. Additionally, it could lead to unauthorized execution of administrative operations on the database, and in some cases, allow for execution of commands on the server operating system.

Reproduction

The vulnerability can be reproduced by sending a POST request to booking.php with the serv_id parameter included. The request can be crafted to include SQL injection payloads that exploit the application's SQL query handling. This can be done using tools like sqlmap, which 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. Input validation and filtering should be implemented to ensure user input conforms to expected formats. Additionally, database user permissions should be minimized to the least necessary for operations.

Added: Oct 13, 2025, 5:18 AM
Updated: Oct 13, 2025, 5:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.7
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.