HIGH 7.3

CVE-2026-14654: SQL Injection in SourceCodester Shopping Cart Script 1.0

A SQL injection vulnerability exists in SourceCodester Simple and Nice Shopping Cart Script version 1.0. An attacker can manipulate the user_id parameter in the /admin/girlsproductdeletequery.php file to inject malicious SQL commands. Because this admin endpoint requires no authentication and can be accessed over the network, an unauthenticated remote attacker can exploit this flaw to read, modify, or delete database contents. Public exploits are already available, increasing the practical risk.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.3 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses (CWE)
CWE-74, CWE-89
Affected products
0 configuration(s)
Published / Modified
2026-07-04 / 2026-07-06

NVD description (verbatim)

A vulnerability was identified in SourceCodester Simple and Nice Shopping Cart Script 1.0. Affected is an unknown function of the file /admin/girlsproductdeletequery.php. Such manipulation of the argument user_id leads to sql injection. The attack can be executed remotely. The exploit is publicly available and might be used.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-14654 is a CWE-89 SQL injection flaw in SourceCodester Simple and Nice Shopping Cart Script 1.0's administrative interface. The vulnerability resides in /admin/girlsproductdeletequery.php, where the user_id parameter is insufficiently sanitized before being used in SQL queries. The lack of parameterized queries or input validation allows attackers to construct malicious SQL statements. The attack vector is network-based with no authentication required (CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), yielding a CVSS 3.1 score of 7.3 (HIGH severity). CWE-74 (Improper Neutralization of Special Elements in Output) is also associated, indicating broader input-handling deficiencies.

Business impact

Exploitation of this vulnerability allows attackers to compromise the confidentiality, integrity, and availability of the shopping cart's database. An attacker could exfiltrate customer data, payment information, or product catalogs; modify pricing, orders, or customer records; or delete critical business data. For e-commerce operations, this translates to potential regulatory exposure (PCI DSS, GDPR), reputational damage, loss of customer trust, and operational disruption. The public availability of exploits significantly shortens the window before opportunistic attacks occur.

Affected systems

SourceCodester Simple and Nice Shopping Cart Script version 1.0 is vulnerable. Organizations running this application, particularly in production environments where the /admin/ path is exposed to the internet, face direct risk. Small to medium-sized e-commerce businesses and custom implementations built on this script are the primary target population.

Exploitability

This vulnerability is highly exploitable. It requires no authentication, no user interaction, and can be triggered remotely via a simple HTTP request with a crafted user_id parameter. The low attack complexity (AC:L) and public availability of proof-of-concept exploits mean that both sophisticated adversaries and script kiddies can weaponize this flaw. Active exploitation in the wild is probable given the public disclosure.

Remediation

Immediate action is required. The primary remediation is to upgrade from version 1.0 to a patched version if one is available from the vendor. Verify the latest version and advisory on the SourceCodester website or contact the vendor directly. If no patch is available, implement compensating controls: restrict access to /admin/ using network-level firewall rules, IP whitelisting, or a Web Application Firewall (WAF) with SQL injection detection signatures. Apply input validation and parameterized queries to all database interactions within the application code. Consider decommissioning or isolating the application until a fix is confirmed.

Patch guidance

Contact SourceCodester or check their official vendor advisory and release notes to identify patched versions beyond 1.0. Verify the patch addresses the user_id parameter sanitization in girlsproductdeletequery.php and includes broader input-handling improvements (CWE-74). Once available, apply patches during a maintenance window and validate that SQL injection attempts are blocked. If no vendor patch is released within 30 days, escalate to alternative solutions or custom remediation.

Detection guidance

Monitor web server and application logs for suspicious activity in /admin/girlsproductdeletequery.php, particularly requests containing SQL keywords (UNION, SELECT, DROP, INSERT, UPDATE) or special characters (single quotes, semicolons, dashes) in the user_id parameter. Deploy a WAF to detect and block SQL injection payloads in real time. Query database logs for unusual or unauthorized queries issued during suspicious time windows. Network-based intrusion detection systems (IDS) can flag known SQL injection signatures targeting this endpoint.

Why prioritize this

This vulnerability merits immediate prioritization due to the combination of HIGH CVSS score (7.3), unauthenticated remote exploitability, publicly available exploits, and direct access to sensitive business data. The lack of KEV status does not diminish urgency—public exploit code and the simplicity of the attack vector make this a prime target for rapid exploitation. Organizations running this script should treat this as a critical security incident.

Risk score, explained

The CVSS 3.1 score of 7.3 reflects a HIGH-severity vulnerability with broad impact. The network attack vector (AV:N), lack of privilege requirements (PR:N), and absence of user interaction (UI:N) all increase exploitability. The vulnerability compromises confidentiality, integrity, and availability of the database (C:L, I:L, A:L). While the impact is rated as 'Low' in the CVSS model, the combination of ease of exploitation and access to customer and financial data elevates practical business risk significantly. Organizations should treat this as a critical priority.

Frequently asked questions

Do I need to have this script in production for it to affect me?

Yes, you are only at risk if you are running SourceCodester Simple and Nice Shopping Cart Script version 1.0. Check your application version and file inventory. If you are not using this specific script, you are not directly affected by CVE-2026-14654, but you should audit your environment for similar SQL injection vulnerabilities in other applications.

What if I have the admin path behind a firewall or VPN?

Network segmentation significantly reduces risk, but it is not a complete solution. A compromised internal user, lateral movement by an attacker, or misconfigured access controls could still expose the vulnerable admin path. Apply the patch or upgrade as soon as possible rather than relying solely on network controls.

Is there a temporary workaround if I cannot patch immediately?

Yes. Implement a Web Application Firewall (WAF) with SQL injection detection rules to block malicious requests to /admin/girlsproductdeletequery.php. Also restrict administrative access to trusted IP addresses only, and monitor logs for exploitation attempts. However, these are temporary measures—patching or upgrading is the only permanent fix.

Does the vendor have a public advisory or patched version available?

As of the vulnerability publication date (July 4, 2026), verify the latest vendor advisory directly with SourceCodester. This intelligence page does not reference a specific patched version; consult the vendor's security bulletin or GitHub repository to confirm availability and version numbers of fixes.

This analysis is provided for informational purposes and reflects the state of publicly available information as of the publication and modification dates indicated. SEC.co makes no warranty regarding the completeness, accuracy, or timeliness of this content. Patch version numbers, vendor advisory URLs, and specific remediation steps should be independently verified against official vendor communications and security bulletins. Organizations are responsible for assessing their own exposure, testing patches in non-production environments, and implementing controls appropriate to their risk tolerance and regulatory obligations. No liability is assumed for damages arising from reliance on this intelligence without independent verification. Source: NVD (public-domain), retrieved 2026-08-13. Analysis generated by SEC.co (claude-haiku-4-5).