SourceCodester Pizzafy Ecommerce System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Pizzafy Ecommerce System version 1.0. The issue arises in the 'Category' function of 'pizza/index.php?page=category', where the 'id' parameter is not properly sanitized. This flaw allows remote attackers to inject malicious SQL commands, exploiting the application’s database query handling. The vulnerability has been publicly disclosed and is unpatched.

Impact

Exploitation of this vulnerability allows attackers to perform error-based SQL injection, with potential impacts including extraction of database information, manipulation or deletion of records, and unauthorized privilege escalation by hijacking session data.

Reproduction

The vulnerability can be reproduced by sending a GET request to 'pizza/index.php?page=category' with an 'id' parameter that includes an SQL injection payload. The injected SQL command can be crafted to exploit the application's database error handling, extracting sensitive information through error messages.

Remediation

To address this vulnerability, it is recommended to use prepared statements for database queries, validate and sanitize input parameters, restrict database user privileges, monitor and log unusual access patterns, conduct regular security testing, and improve error handling to avoid disclosing database errors.

Added: Apr 28, 2026, 11:20 AM
Updated: Apr 28, 2026, 11:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
6.9
threat
6.4
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.