CVE-2025-13323

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in Simple Pizza Ordering System 1.0 allows remote attackers to execute arbitrary SQL commands via the ID parameter in /listorder.php. This can lead to data theft, modification, or deletion. Any organization using this vulnerable software is affected.

💻 Affected Systems

Products:
  • Simple Pizza Ordering System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /listorder.php file specifically. Any deployment 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 (names, addresses, payment info), database destruction, or server takeover via SQL injection to RCE chain.

🟠

Likely Case

Data exfiltration of order information and customer details, potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and WAF rules blocking malicious SQL patterns.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit code is publicly available and SQL injection via ID parameter is straightforward to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

1. Check vendor website for updates
2. If no patch available, implement workarounds
3. Consider replacing with secure alternative software

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize the ID parameter before processing

Modify /listorder.php to validate ID parameter as integer using is_numeric() or filter_var()

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: SecRule ARGS:id "@detectSQLi" "id:1001,phase:2,deny"

🧯 If You Can't Patch

  • Block external access to /listorder.php via firewall rules
  • Implement strict input validation at application layer for all user inputs

🔍 How to Verify

Check if Vulnerable:

Test /listorder.php?id=1' OR '1'='1 to see if SQL error occurs or unexpected behavior

Check Version:

Check file headers or documentation for version information

Verify Fix Applied:

Test with same payload after fixes - should return proper error or no data

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in application logs
  • Unusual database queries from web server
  • Multiple failed parameter requests to /listorder.php

Network Indicators:

  • HTTP requests to /listorder.php with SQL keywords in parameters
  • Unusual outbound database connections from web server

SIEM Query:

source="web_logs" AND uri="/listorder.php" AND (param="id" AND value MATCHES "'.*OR.*|UNION.*|SELECT.*")

🔗 References

📤 Share & Export