CVE-2026-7228 Details
Description
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.
A critical error-based SQL injection vulnerability has been identified in SourceCodester Pizzafy Ecommerce System version 1.0. The issue arises in the 'get_cart_count' function within '/admin/ajax.php?action=get_cart_count'. The vulnerability allows attackers to manipulate the 'id' parameter, injecting malicious SQL that is executed by the database. This flaw can be exploited remotely, without authentication, and has been publicly disclosed along with a proof-of-concept exploit.
It is recommended to update the code to use prepared statements for database queries, which can prevent SQL injection vulnerabilities. Additionally, input validation should be implemented to sanitize user inputs before processing them in SQL queries.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 28, 2026CISA-ADP
Assessed Apr 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/fernando-mengali/vulndb-submissions/blob/main/05-vul-SQLI.md | [email protected] | ExploitTechnical Description |
| https://vuldb.com/submit/802416 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/359828 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/359828/cti | [email protected] | Content Wall |
| https://www.sourcecodester.com/ | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SourceCodester Pizzafy Ecommerce System | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 28, 2026 | New CVE Received | [email protected] |
Volerion