CVE-2025-15166

7.3 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary SQL commands via the ID parameter in the /updatesupplier.php?action=edit endpoint of itsourcecode Online Cake Ordering System 1.0. Attackers can potentially read, modify, or delete database content. All deployments of version 1.0 are affected.

💻 Affected Systems

Products:
  • itsourcecode Online Cake Ordering System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable by default. No special configuration required.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to supplier data, potential extraction of sensitive information like credentials or customer data.

🟢

If Mitigated

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

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

🎯 Exploit Status

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

Exploit details are publicly available, making this easy to weaponize. No authentication required to trigger the vulnerability.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://itsourcecode.com/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries as workaround.

🔧 Temporary Workarounds

Input Validation Filter

all

Add server-side validation to ensure ID parameter contains only numeric values

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

WAF Rule

all

Implement web application firewall rules to block SQL injection patterns

Add WAF rule: Detect and block patterns like UNION, SELECT, INSERT, DELETE, DROP in URL parameters

🧯 If You Can't Patch

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

🔍 How to Verify

Check if Vulnerable:

Test by accessing /updatesupplier.php?action=edit&ID=1' OR '1'='1 and checking for SQL errors or unexpected behavior

Check Version:

Check source code or documentation for version information

Verify Fix Applied:

Attempt the same test after implementing fixes - should receive proper error handling or rejection

📡 Detection & Monitoring

Log Indicators:

  • Multiple requests to /updatesupplier.php with unusual ID parameters
  • SQL error messages in application logs
  • Database queries with UNION or unusual syntax

Network Indicators:

  • HTTP requests containing SQL keywords in URL parameters
  • Unusual database connection patterns from web server

SIEM Query:

source=web_logs AND (url="/updatesupplier.php" AND (param="ID" AND value MATCHES "[';]"))

🔗 References

📤 Share & Export