Code-Projects Online Note Sharing SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability exists in Code-Projects Online Note Sharing version 1.0, specifically within the login.php file. The issue arises because the application fails to properly sanitize user input in the username and password fields before incorporating it into SQL queries. This vulnerability allows remote attackers to inject arbitrary SQL, potentially bypassing authentication, accessing or modifying database information, and executing additional attacks such as privilege escalation.

Impact

Exploitation of this vulnerability allows an attacker to bypass authentication, access and manipulate database information, and execute further attacks such as privilege escalation.

Reproduction

The vulnerability can be reproduced by sending a POST request to the login.php file with crafted payloads in the username and password fields. This can be done manually or using automated tools like sqlmap, which can exploit the SQL injection by injecting SQL payloads and extracting data from the database.

Remediation

It is recommended to use prepared statements for database queries to prevent SQL injection. Additionally, all user input should be sanitized before being used in SQL commands. Implementing a web application firewall (WAF) can also help block suspicious input patterns.

Added: Jul 8, 2025, 3:56 AM
Updated: Jul 8, 2025, 3:56 AM

Vulnerability Rating

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