CVE-2025-10030

7.3 HIGH

📋 TL;DR

CVE-2025-10030 is a SQL injection vulnerability in Campcodes Grocery Sales and Inventory System 1.0 that allows remote attackers to execute arbitrary SQL commands via the ID parameter in the /ajax.php?action=save_receiving endpoint. This affects all organizations using this specific software version, potentially compromising database confidentiality, integrity, and availability.

💻 Affected Systems

Products:
  • Campcodes Grocery Sales and Inventory System
Versions: 1.0
Operating Systems: Any OS running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0; the vulnerability exists in the core application code.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, deletion of all records, and potential server takeover via SQL injection escalation techniques.

🟠

Likely Case

Unauthorized data access and extraction of sensitive information such as customer data, inventory records, and financial transactions.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to specific tables or preventing command execution.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and a public exploit exists, making internet-facing instances immediate targets.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but require network access; risk increases if internal users can be tricked into triggering the exploit.

🎯 Exploit Status

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

Exploit code is publicly available on GitHub, making this easily weaponizable by attackers with minimal technical skill.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Check vendor website for updates. Consider migrating to alternative software if no fix is provided.

🔧 Temporary Workarounds

Input Validation Filter

all

Implement strict input validation for the ID parameter to only accept expected data types

Modify /ajax.php to validate ID parameter using is_numeric() or prepared statements

Web Application Firewall Rule

all

Block SQL injection patterns targeting the vulnerable endpoint

WAF rule: Block requests to /ajax.php?action=save_receiving with suspicious SQL patterns in ID parameter

🧯 If You Can't Patch

  • Isolate the system from internet access and restrict internal network access to only necessary users
  • Implement database-level controls: Use least privilege database accounts, enable query logging, and implement database firewall rules

🔍 How to Verify

Check if Vulnerable:

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

Check Version:

Check application files for version information or consult installation documentation

Verify Fix Applied:

Test with same payloads after implementing fixes; successful fix should return error or no database interaction

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from web server, SQL syntax errors in application logs, multiple failed login attempts following SQL injection patterns

Network Indicators:

  • HTTP requests to /ajax.php?action=save_receiving with SQL keywords in parameters, unusual database port traffic from web server

SIEM Query:

source="web_logs" AND uri="/ajax.php" AND query_string="*action=save_receiving*" AND (query_string="*UNION*" OR query_string="*SELECT*" OR query_string="*OR '1'='1*")

🔗 References

📤 Share & Export