CVE-2025-6479

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Simple Pizza Ordering System 1.0 allows remote attackers to execute arbitrary SQL commands via the 'dayfrom' parameter in /salesreport.php. This can lead to unauthorized data access, modification, or deletion. All systems running this software with the vulnerable component exposed are affected.

💻 Affected Systems

Products:
  • Simple Pizza Ordering System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in the default installation when /salesreport.php is accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential server takeover via SQL injection leading to remote code execution.

🟠

Likely Case

Unauthorized access to sensitive order data, customer information, and potential database manipulation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to specific tables.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available and SQL injection is a well-understood attack vector.

🛠️ 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 alternative software

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize the dayfrom parameter before processing

Modify /salesreport.php to validate dayfrom parameter using prepared statements or parameterized queries

Access Restriction

all

Restrict access to /salesreport.php to authorized users only

Add authentication check at the beginning of /salesreport.php

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block SQL injection patterns
  • Isolate the system from internet access and restrict to internal network only

🔍 How to Verify

Check if Vulnerable:

Test /salesreport.php with SQL injection payloads in dayfrom parameter (e.g., dayfrom=1' OR '1'='1)

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Test that SQL injection payloads no longer work and return proper error handling

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple requests to /salesreport.php with suspicious parameters

Network Indicators:

  • HTTP requests containing SQL keywords (SELECT, UNION, etc.) in dayfrom parameter

SIEM Query:

source="web_logs" AND uri="/salesreport.php" AND (query="*SELECT*" OR query="*UNION*" OR query="*OR '1'='1*")

🔗 References

📤 Share & Export