Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Pizzafy 1.0 installation
-
DeliverySend crafted HTTP request to /admin/ajax.php
-
ExploitInject SQL payload via ID parameter
-
ExecutionExecute arbitrary SQL commands
-
ImpactExtract database credentials or modify e-commerce data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The get_cart_count AJAX endpoint at /admin/ajax.php must be accessible to remote network traffic, which is the default deployment for web-accessible e-commerce platforms. No authentication is required (PR:N in CVSS vector), meaning exploitation succeeds against default Pizzafy configurations without credentials or user interaction. The /admin/ path prefix suggests intended restriction to authenticated administrators, but the vulnerability description and CVSS vector confirm unauthenticated remote exploitation is possible, indicating either a missing authentication check on this specific AJAX action or a design flaw where cart count retrieval is intentionally public. Exploitation is further simplified by low attack complexity (AC:L) - standard HTTP GET or POST requests with injected SQL syntax suffice, requiring no timing manipulation, race conditions, or target-specific reconnaissance beyond identifying Pizzafy installations. Limiting factors: Exploitation impact is constrained to the database user privileges under which the PHP application runs; if configured with least-privilege MySQL/MariaDB accounts, the attacker cannot directly compromise the underlying operating system, though data exfiltration and application-layer damage remain viable. |
| Impact | Real-world risk is elevated due to multiple converging factors. The CVSS 3.1 base score of 7.3 (High) reflects network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), and no user interaction (UI:N), meaning any remote attacker can exploit this without authentication or social engineering. Impact includes low confidentiality (C:L), integrity (I:L), and availability (A:L) compromise, consistent with SQL injection that can extract data, modify records, or potentially cause denial of service. The Exploit Maturity (E:P) indicator confirms publicly available proof-of-concept code exists, as evidenced by the GitHub repository from fernando-mengali. Remediation Level (RL:X) is not defined, suggesting no official vendor patch confirmation at time of CVE assignment. While EPSS data is unavailable, the public exploit combined with trivial exploitation conditions (no auth, low complexity) creates high risk for any internet-exposed Pizzafy installation. However, the limited deployment footprint of this SourceCodester learning platform (compared to enterprise software) may reduce widespread exploitation probability. Key missing data: CISA KEV status (not listed), EPSS score, and vendor patch timeline - no official advisory from SourceCodester identified in references. |
| Exploit ScenarioDerived | An unauthenticated remote attacker crafts a malicious HTTP request to https://victim-site.com/admin/ajax.php?action=get_cart_count with a SQL injection payload in the ID parameter, such as ID=1' UNION SELECT username,password,email FROM admin_users--. The vulnerable get_cart_count function concatenates this input directly into a SQL query without sanitization, causing the database to execute the attacker's injected commands. The attacker extracts sensitive data like admin credentials, modifies shopping cart records to manipulate pricing, or uses stacked queries to drop tables and cause service disruption. Public exploit code on GitHub provides ready-to-use payloads, enabling even low-skill attackers to compromise vulnerable installations within minutes of discovery. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
SQL injection in Pizzafy Ecommerce System 1.0 allows remote unauthenticated attackers to execute arbitrary SQL commands via the ID parameter in the get_cart_count function at /admin/ajax.php. CVSS scores 7.3 (High) with network attack vector, low complexity, and no authentication required. Public exploit code exists on GitHub, significantly lowering the barrier to exploitation. EPSS data not available, but the combination of public exploit, low attack complexity (AC:L), and no authentication (PR:N) indicates moderate-to-high real-world risk for internet-facing installations.
RemediationAI
No vendor-released patch identified at time of analysis - SourceCodester has not published a security advisory or updated version per available references. Organizations must implement immediate compensating controls: (1) Apply input validation and parameterized queries (prepared statements) to the get_cart_count function in /admin/ajax.php, replacing any direct SQL concatenation of the ID parameter with bound parameters using PDO or MySQLi prepared statements. (2) Deploy web application firewall (WAF) rules to block SQL injection patterns in requests to /admin/ajax.php, though this is bypass-prone and not a substitute for code fixes. (3) Restrict access to /admin/* paths to authenticated admin users only via web server access controls (Apache .htaccess or nginx location blocks), though this mitigates only if the endpoint was not intended for unauthenticated access. (4) If the get_cart_count AJAX function is not business-critical, disable or remove the endpoint entirely until a secure implementation is available. Trade-offs: Code-level fixes require PHP development expertise and testing; WAF rules may cause false positives; access restrictions may break legitimate functionality if unauthenticated cart count retrieval is a design requirement. For proof-of-concept details, reference the exploit code at https://github.com/fernando-mengali/vulndb-submissions/blob/main/05-vul-SQLI.md and VulDB entry https://vuldb.com/vuln/359828.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability is a classic SQL injection (CWE-89) in a PHP-based e-commerce application. The get_cart_count AJAX endpoint in /admin/ajax.php fails to properly sanitize or parameterize the ID argument before incorporating it into SQL queries. SQL injection occurs when user-controlled input is concatenated directly into SQL statements without validation or prepared statements, allowing attackers to break out of the intended query logic and inject arbitrary SQL commands. The affected product, Pizzafy Ecommerce System 1.0 by SourceCodester, is a freely available PHP e-commerce platform often used for learning or small business deployments. The vulnerability resides in server-side PHP code that processes AJAX requests, a common attack surface in modern web applications where client-side JavaScript makes asynchronous calls to backend endpoints.
Know when Pizzafy Ecommerce System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.org
A flaw has been found in SourceCodester Pizzafy Ecommerce System 1.0. The affected element is the function get_cart_count of the file /admin/ajax.php?action=get_cart_count. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been published and may be used.
Executive ViewAI
Pizzafy Ecommerce System 1.0 contains an unauthenticated SQL injection vulnerability in the admin cart function that allows remote attackers to execute arbitrary database queries without authentication. Organizations running this platform face immediate risk of data breach, unauthorized access, and business disruption, particularly since functional exploit code is publicly available and the vulnerability requires no special privileges or user interaction to exploit.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict /admin/ajax.php access via network firewall to authorized IP ranges only; (2) Deploy Web Application Firewall (WAF) with SQL injection signatures targeting the ID parameter; (3) Implement database activity monitoring to detect anomalous queries; (4) Segment database servers from public-facing application tier; (5) Enable database query logging and alerting on multiple failed queries; (6) Consider temporary removal of Pizzafy from production until patch is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Pizzafy Ecommerce System
View allSQL injection in Pizzafy Ecommerce System 1.0 allows remote unauthenticated attackers to compromise database confidentia
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows remote unauthenticated attackers to compromise datab
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows remote unauthenticated attackers to execute arbitrar
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows unauthenticated remote attackers to extract, modify,
Local File Inclusion via null byte injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote
File inclusion in SourceCodester Pizzafy Ecommerce System 1.0 exposes the admin panel to path traversal attacks via the
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote attackers to execute arbitrary
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote attackers to execute arbitrary
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 via the ID parameter in /view_prod.php allows authenticated
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote attackers to execute arbitrary
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote attackers to read, modify, or d
SQL injection in SourceCodester Pizzafy Ecommerce System 1.0 allows authenticated remote attackers to manipulate the ID
EUVD-2026-25992
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB