CVE-2025-14246

6.3 MEDIUM

📋 TL;DR

This SQL injection vulnerability in Simple Shopping Cart 1.0 allows attackers to manipulate database queries through the user_id parameter in /Customers/settings.php. Remote attackers can potentially access, modify, or delete database content. All users running Simple Shopping Cart 1.0 are affected.

💻 Affected Systems

Products:
  • Simple Shopping Cart
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /Customers/settings.php file specifically. Any installation with this file accessible is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive customer data theft, administrative account takeover, and potential server compromise via SQL injection escalation.

🟠

Likely Case

Unauthorized data access including customer information, order details, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or minimal data exposure.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit details are publicly available on GitHub. Remote exploitation is confirmed possible without authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative shopping cart software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or input validation to the user_id parameter in /Customers/settings.php

Modify PHP code to use prepared statements: $stmt = $conn->prepare('SELECT * FROM users WHERE id = ?'); $stmt->bind_param('i', $user_id);

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the settings.php endpoint

Add WAF rule: Block requests containing SQL keywords (UNION, SELECT, INSERT, etc.) in user_id parameter

🧯 If You Can't Patch

  • Restrict access to /Customers/settings.php using IP whitelisting or authentication
  • Implement database user with minimal permissions (read-only if possible)

🔍 How to Verify

Check if Vulnerable:

Test the /Customers/settings.php endpoint with SQL injection payloads in user_id parameter (e.g., user_id=1' OR '1'='1)

Check Version:

Check application files for version information or review installation documentation

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages or are blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to /Customers/settings.php with varying user_id parameters
  • Database query errors containing SQL syntax

Network Indicators:

  • HTTP requests to /Customers/settings.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/Customers/settings.php" AND (param="user_id" AND value MATCHES "(?i)(union|select|insert|delete|drop|--|#)")

🔗 References

📤 Share & Export