CVE-2025-6315

7.3 HIGH

📋 TL;DR

CVE-2025-6315 is a critical SQL injection vulnerability in code-projects Online Shoe Store 1.0 that allows remote attackers to execute arbitrary SQL commands via the ID parameter in /cart2.php. This affects all deployments of version 1.0 of the software. Attackers can potentially steal sensitive data, modify database contents, or gain unauthorized access.

💻 Affected Systems

Products:
  • code-projects Online Shoe Store
Versions: 1.0
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, privilege escalation, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized access to customer data, order information, and administrative credentials stored in the database.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-sensitive data.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects web-facing applications.
🏢 Internal Only: MEDIUM - Internal deployments are still vulnerable but have reduced attack surface.

🎯 Exploit Status

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

Exploit details are publicly available and SQL injection is a well-understood attack vector.

🛠️ 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 software or implementing custom fixes.

🔧 Temporary Workarounds

Input Validation Filter

all

Add parameter validation to /cart2.php to ensure ID parameter contains only numeric values

Modify /cart2.php to include: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

Web Application Firewall Rule

all

Block SQL injection patterns targeting /cart2.php

WAF rule: deny requests to /cart2.php containing SQL keywords in ID parameter

🧯 If You Can't Patch

  • Isolate the application behind a reverse proxy with strict input validation
  • Implement network segmentation to limit database access from the web server

🔍 How to Verify

Check if Vulnerable:

Test /cart2.php with SQL injection payloads like: /cart2.php?ID=1' OR '1'='1

Check Version:

Check application files for version information or review installation documentation

Verify Fix Applied:

Test with same payloads and verify they are rejected or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to /cart2.php with suspicious parameters

Network Indicators:

  • HTTP requests to /cart2.php containing SQL keywords like UNION, SELECT, OR

SIEM Query:

source="web_logs" AND uri="/cart2.php" AND (query="*UNION*" OR query="*SELECT*" OR query="*OR*" OR query="*'*'")

🔗 References

📤 Share & Export