CVE-2025-3338

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability exists in codeprojects Online Restaurant Management System 1.0, specifically in the /admin/user_save.php file's Name parameter. 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: The vulnerability affects the admin interface at /admin/user_save.php, specifically the Name parameter, though other parameters might also be vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Database information disclosure, user credential theft, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or partial data exposure.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ 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 proper input validation and parameterized queries in /admin/user_save.php

Edit /admin/user_save.php to use prepared statements with parameterized queries instead of direct string concatenation

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules

🧯 If You Can't Patch

  • Isolate the affected system from the internet and restrict access to trusted networks only
  • Implement strict network segmentation and monitor all database access attempts

🔍 How to Verify

Check if Vulnerable:

Test the /admin/user_save.php endpoint with SQL injection payloads in the Name parameter (e.g., ' OR '1'='1)

Check Version:

Check the software version in the application interface or configuration files

Verify Fix Applied:

Test with the same payloads after implementing parameterized queries - should return error or no data leakage

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts from admin interface
  • SQL syntax errors in application logs

Network Indicators:

  • Unusual database connection patterns
  • SQL injection patterns in HTTP requests to /admin/user_save.php

SIEM Query:

source="web_logs" AND uri="/admin/user_save.php" AND (payload="' OR" OR payload="UNION" OR payload="SELECT" OR payload="--")

🔗 References

📤 Share & Export