CVE-2025-3331

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability exists in codeprojects Online Restaurant Management System 1.0 via the 'mode' parameter in /payment_save.php. This allows remote attackers to execute arbitrary SQL commands on the database. All users running version 1.0 of this software are affected.

💻 Affected Systems

Products:
  • codeprojects Online Restaurant Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /payment_save.php endpoint specifically through the 'mode' parameter.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Database information disclosure, authentication bypass, or data manipulation affecting restaurant operations and customer data.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place.

🌐 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, making this easily exploitable.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None known

Restart Required: No

Instructions:

No official patch available. Consider migrating to a supported alternative or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for the 'mode' parameter in /payment_save.php.

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious requests to /payment_save.php.

🧯 If You Can't Patch

  • Isolate the system from the internet and restrict access to internal networks only.
  • Implement network segmentation and monitor all traffic to /payment_save.php for suspicious SQL patterns.

🔍 How to Verify

Check if Vulnerable:

Test the /payment_save.php endpoint with SQL injection payloads in the 'mode' parameter and observe database errors or unexpected behavior.

Check Version:

Check the software version in the admin panel or configuration files; expected to be 1.0.

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that parameterized queries are implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs, errors from /payment_save.php, or unexpected database access patterns.

Network Indicators:

  • HTTP requests to /payment_save.php with SQL keywords in parameters, especially in the 'mode' field.

SIEM Query:

source="web_logs" AND uri="/payment_save.php" AND (param="mode" AND value CONTAINS "UNION" OR "SELECT" OR "INSERT" OR "DELETE")

🔗 References

📤 Share & Export