CVE-2025-6317

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability in code-projects Online Shoe Store 1.0 allows remote attackers to execute arbitrary SQL commands via the ID parameter in /admin/confirm.php. This affects all deployments of version 1.0, potentially compromising the entire database. Attackers can steal sensitive data, modify records, or gain administrative access.

💻 Affected Systems

Products:
  • code-projects Online Shoe Store
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable. The /admin/confirm.php file is part of standard installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, privilege escalation to admin, and potential server takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to sensitive customer data (PII, payment info), modification of product/pricing data, and admin account takeover.

🟢

If Mitigated

Limited data exposure if database permissions are restricted, but SQL injection still allows unauthorized queries.

🌐 Internet-Facing: HIGH - Remote exploitation possible without authentication, public exploit available.
🏢 Internal Only: MEDIUM - Still exploitable by internal attackers or compromised accounts.

🎯 Exploit Status

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

Exploit details publicly disclosed on GitHub. Simple SQL injection via ID parameter manipulation.

🛠️ 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 workarounds.

🔧 Temporary Workarounds

Input Validation and Parameterized Queries

all

Modify /admin/confirm.php to validate ID parameter and use prepared statements

Edit /admin/confirm.php to replace raw SQL with parameterized queries using mysqli or PDO

WAF Rule Implementation

all

Block SQL injection patterns targeting /admin/confirm.php

Add WAF rule: deny requests to /admin/confirm.php with suspicious SQL patterns in ID parameter

🧯 If You Can't Patch

  • Block external access to /admin/ directory via firewall rules
  • Implement strict database user permissions with read-only access where possible

🔍 How to Verify

Check if Vulnerable:

Test /admin/confirm.php with SQL injection payloads like ' OR '1'='1 in ID parameter

Check Version:

Check source code or documentation for version 1.0 indication

Verify Fix Applied:

Verify parameterized queries are implemented and SQL injection attempts return errors without executing

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed SQL queries in web logs
  • Unusual database access patterns from web server
  • Requests to /admin/confirm.php with SQL keywords in parameters

Network Indicators:

  • SQL error messages in HTTP responses
  • Unusual traffic patterns to admin endpoints

SIEM Query:

source="web_logs" AND uri="/admin/confirm.php" AND (param="ID" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|or|and|'|--|#)")

🔗 References

📤 Share & Export