CVE-2025-10416

7.3 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary SQL commands via the ID parameter in the /ajax.php?action=delete_supplier endpoint in Campcodes Grocery Sales and Inventory System 1.0. Attackers can potentially read, modify, or delete database content. Organizations using this specific software version are affected.

💻 Affected Systems

Products:
  • Campcodes Grocery Sales and Inventory System
Versions: 1.0
Operating Systems: Any
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the web application component; no specific OS requirements.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized data access, data manipulation, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permission restrictions.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Simple SQL injection via GET parameter; exploit details are publicly available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://www.campcodes.com/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries as temporary mitigation.

🔧 Temporary Workarounds

Web Application Firewall Rule

all

Block or sanitize requests to /ajax.php with delete_supplier action containing suspicious SQL patterns.

WAF-specific configuration required

Input Validation Filter

all

Implement server-side validation to reject non-numeric ID parameters.

Application code modification required

🧯 If You Can't Patch

  • Isolate the system from internet access and restrict to internal network only.
  • Implement strict database user permissions with least privilege principle.

🔍 How to Verify

Check if Vulnerable:

Test the endpoint with SQL injection payloads like: /ajax.php?action=delete_supplier&ID=1' OR '1'='1

Check Version:

Check application version in admin panel or configuration files.

Verify Fix Applied:

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

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to /ajax.php with delete_supplier action containing SQL keywords

Network Indicators:

  • HTTP requests with SQL injection patterns in ID parameter

SIEM Query:

source="web_logs" AND uri_path="/ajax.php" AND query_string="*delete_supplier*" AND (query_string="*' OR*" OR query_string="*UNION*" OR query_string="*SELECT*" OR query_string="*--*" OR query_string="*;*" OR query_string="*/*")

🔗 References

📤 Share & Export