CVE-2025-5980

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability in Restaurant Order System 1.0 allows remote attackers to execute arbitrary SQL commands via the tabidNoti parameter in /order.php. This can lead to data theft, modification, or deletion. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • code-projects Restaurant Order System
Versions: 1.0
Operating Systems: All platforms running the web application
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /order.php endpoint specifically. Any installation with this file accessible is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including theft of sensitive customer data (payment info, personal details), administrative account takeover, and potential remote code execution if database permissions allow.

🟠

Likely Case

Data exfiltration of order information, customer details, and potential privilege escalation to administrative access.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database user privilege restrictions.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects a web-facing component (/order.php).
🏢 Internal Only: MEDIUM - Still exploitable from internal networks but attack surface is reduced.

🎯 Exploit Status

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

Exploit details are publicly available on GitHub. SQL injection vulnerabilities are commonly weaponized due to their prevalence and impact.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries in /order.php, or replace the system entirely.

🔧 Temporary Workarounds

Web Application Firewall (WAF) Rules

all

Implement WAF rules to block SQL injection patterns targeting the tabidNoti parameter

Input Validation Filter

all

Add server-side validation to sanitize the tabidNoti parameter before processing

🧯 If You Can't Patch

  • Isolate the Restaurant Order System from the internet and restrict access to trusted networks only
  • Implement strict database user permissions with least privilege principle

🔍 How to Verify

Check if Vulnerable:

Check if /order.php exists and accepts tabidNoti parameter. Test with SQL injection payloads like ' OR '1'='1

Check Version:

Check application files or documentation for version information. Typically found in readme files or configuration files.

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages or sanitized responses

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple requests to /order.php with suspicious parameter values
  • Database query errors containing tabidNoti parameter

Network Indicators:

  • HTTP POST/GET requests to /order.php containing SQL keywords (UNION, SELECT, INSERT, etc.) in parameters
  • Unusual database connection patterns from web server

SIEM Query:

web.url:*order.php* AND (web.param:*tabidNoti* AND (web.param:*UNION* OR web.param:*SELECT* OR web.param:*INSERT* OR web.param:*' OR*))

🔗 References

📤 Share & Export