SourceCodester Online Eyewear Shop SQL Injection Vulnerability in Users.php

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Online Eyewear Shop version 1.0. The issue arises in the file '/classes/Users.php?f=delete_customer', where the 'id' parameter can be manipulated to execute unauthorized SQL commands. This vulnerability can be exploited remotely, allowing attackers to access sensitive information from the server.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate database queries. This could lead to unauthorized data access, data modification, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a request to '/classes/Users.php?f=delete_customer' with a crafted 'id' parameter that includes SQL injection payloads. The server's response should indicate successful exploitation, such as returning database information or application data that should not be accessible.

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

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
2.5
exploitability
9.7
remediation
0.0
relevance
0.0
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.