SourceCodester Online Eyewear Shop SQL Injection Vulnerability

Vulnerability

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

Impact

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

Reproduction

To reproduce this vulnerability, send a POST request to '/oews/classes/Master.php?f=delete_stock' with a crafted 'id' parameter that includes SQL injection payloads. The injection can be confirmed by extracting database information through error-based SQL injection techniques.

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
6.8
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.