SourceCodester Simple Company Website SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Simple Company Website version 1.0. The issue resides in the file '/admin/clients/manage.php', where insufficient validation of the 'id' parameter allows attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data manipulation, and leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to interfere with the application's database queries. This could result in unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, log into the application as an admin user. Once authenticated, navigate to the '/admin/clients/manage.php' page. The vulnerability can be exploited by manipulating the 'id' parameter in the URL with a crafted payload that exploits the SQL injection flaw. This can be done using a time-based blind SQL injection technique, for example, by adding a payload that causes the database to pause for a few seconds before responding. Alternatively, a UNION-based SQL injection payload can be used to extract data from the database by specifying a payload that leverages the UNION SQL operator to combine the results of the original query with data from another table.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help mitigate such vulnerabilities.

Added: Jun 29, 2025, 7:22 PM
Updated: Jun 29, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.6
remediation
0.0
relevance
0.2
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.