Code-Projects Simple Shopping Cart SQL Injection Vulnerability in Admin Login

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Simple Shopping Cart version 1.0, specifically within the '/adminlogin.php' file. The issue arises from inadequate validation of the 'admin_username' parameter, allowing remote attackers to inject malicious SQL queries. This vulnerability could lead to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which could result in unauthorized database access, data leakage, data manipulation, and potentially executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to '/adminlogin.php' with an injected SQL payload in the 'admin_username' parameter. The injection can be boolean-based, error-based, or time-based, depending on the crafted SQL injection payload. This vulnerability can be exploited without authentication.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Dec 8, 2025, 3:19 PM
Updated: Dec 8, 2025, 7:26 PM

Vulnerability Rating

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