CVE-2024-6065

7.3 HIGH

📋 TL;DR

This is a critical SQL injection vulnerability in itsourcecode Bakery Online Ordering System 1.0. Attackers can manipulate the user_email parameter in index.php to execute arbitrary SQL commands remotely. Anyone running this specific software version is affected.

💻 Affected Systems

Products:
  • itsourcecode Bakery Online Ordering System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects the specific 1.0 version of this software. The vulnerability exists in the index.php file's user_email parameter handling.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized access to sensitive customer data (names, addresses, payment info), order manipulation, and potential system takeover.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, but still a serious security flaw.

🌐 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 and vuldb.com, making this easily exploitable by attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

No official patch available. Consider implementing manual fixes or replacing the software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add proper input validation and parameterized queries to the index.php file to prevent SQL injection.

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests.

🧯 If You Can't Patch

  • Isolate the system from the internet and restrict access to internal networks only.
  • Implement strict network segmentation and monitor all database queries for suspicious activity.

🔍 How to Verify

Check if Vulnerable:

Check if you're running Bakery Online Ordering System 1.0 and review the index.php file for user_email parameter handling without proper input validation.

Check Version:

Check the software documentation or configuration files for version information.

Verify Fix Applied:

Test the user_email parameter with SQL injection payloads to ensure they're properly sanitized or blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts with SQL-like patterns in user_email field
  • Unexpected database errors in application logs

Network Indicators:

  • HTTP requests containing SQL injection patterns in user_email parameter
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND (user_email CONTAINS "' OR" OR user_email CONTAINS "UNION" OR user_email CONTAINS "SELECT" OR user_email CONTAINS "--")

🔗 References

📤 Share & Export