SourceCodester Simple To-Do List System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Simple To-Do List System version 1.0. The issue arises in the file complete_task.php, where user input is not properly sanitized before being used in SQL queries. This flaw allows remote attackers to manipulate the ID parameter, potentially leading to unauthorized database access or modification. Exploitation of this vulnerability could result in the attacker gaining access to sensitive data or, in databases with DBA privileges, even escalating to server host privileges.

Impact

Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, potentially leading to unauthorized data access, data manipulation, or in cases where the database user has elevated privileges, executing commands on the server.

Reproduction

To reproduce this vulnerability, send a request to complete_task.php with a crafted ID parameter that includes SQL injection payloads. The injection can be tested using SQLMap, a popular SQL injection and database takeover tool.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

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