CVE-2025-7120

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Campcodes Complaint Management System 1.0 allows attackers to manipulate database queries via the email parameter in /users/check_availability.php. Attackers can potentially read, modify, or delete database contents, and the vulnerability can be exploited remotely without authentication. All users running the affected software version are at risk.

💻 Affected Systems

Products:
  • Campcodes Complaint Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation; no special configuration is required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to execute arbitrary commands.

🟠

Likely Case

Unauthorized access to sensitive complaint data, user information extraction, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permission restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Proof of concept is publicly available on GitHub, making exploitation straightforward for attackers with basic SQL injection knowledge.

🛠️ 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 manually, or replace with alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement server-side validation and sanitization of the email parameter before processing SQL queries.

Modify /users/check_availability.php to validate email format and escape special characters

Web Application Firewall (WAF) Rules

all

Deploy WAF rules to block SQL injection patterns targeting the vulnerable endpoint.

Add WAF rule: Block requests to /users/check_availability.php containing SQL keywords in email parameter

🧯 If You Can't Patch

  • Restrict network access to the application using firewall rules to limit exposure
  • Implement database user permissions with least privilege to minimize potential damage

🔍 How to Verify

Check if Vulnerable:

Test the /users/check_availability.php endpoint with SQL injection payloads in the email parameter (e.g., email=test' OR '1'='1).

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Verify that SQL injection payloads no longer affect database queries and that input validation is properly implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed login attempts with SQL patterns in email field
  • Requests to /users/check_availability.php with suspicious parameters

Network Indicators:

  • HTTP POST requests to /users/check_availability.php containing SQL keywords (UNION, SELECT, etc.)

SIEM Query:

source="web_logs" AND uri_path="/users/check_availability.php" AND (email="*'*" OR email="*UNION*" OR email="*SELECT*")

🔗 References

📤 Share & Export