Code-Projects Content Management System SQL Injection Vulnerability in Search.php

Vulnerability

A SQL injection vulnerability exists in version 1.0 of the Code-Projects Content Management System, specifically within the search.php file. The vulnerability arises because the application improperly sanitizes the 'value' parameter, allowing attackers to inject malicious SQL code. This unsanitized input is directly used in SQL queries, enabling exploitation of the database. The vulnerability can be exploited remotely without authentication.

Impact

Exploitation of this vulnerability allows attackers to manipulate SQL queries, potentially leading to unauthorized data access, data modification, and in some cases, executing administrative operations on the database. Such actions could disrupt normal application functionality and compromise overall system security.

Reproduction

To reproduce this vulnerability, send a GET request to the search.php file with the 'value' parameter. Inject SQL payloads, such as boolean-based blind SQL injection or UNION-based SQL injection, to exploit the vulnerability. The injection can be verified by using a payload that, for example, extracts database information or causes a time delay, indicating successful exploitation.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure that user input meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that accounts used for database connections have only the necessary privileges.

Added: Jan 2, 2026, 9:17 AM
Updated: Jan 2, 2026, 5:17 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
7.5
exploitability
9.7
remediation
0.0
relevance
1.8
threat
6.4
urgency
2.9
incentive
10.0

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