Code-Projects Online Shoe Store SQL Injection Vulnerability in Cart2.php

Vulnerability

A critical SQL injection vulnerability has been identified in the 'Online Shoe Store' project by Code-Projects, specifically in version 1.0. The issue resides in the 'cart2.php' file, where the 'id' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely without any authentication, posing a significant risk to database security and data integrity.

Impact

Exploitation of this vulnerability allows unauthorized access to the database, where attackers can read, modify, or delete data. Additionally, it could lead to unauthorized access to sensitive information and disrupt normal service operations.

Reproduction

The vulnerability can be reproduced by sending a crafted HTTP request to 'cart2.php' with a payload that exploits the SQL injection flaw in the 'id' parameter. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

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: Jun 20, 2025, 7:18 AM
Updated: Jun 20, 2025, 7:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
3.8
exploitability
9.5
remediation
0.0
relevance
0.2
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.