CVE-2024-8344

6.3 MEDIUM

📋 TL;DR

Campcodes Supplier Management System 1.0 contains a critical SQL injection vulnerability in the /admin/edit_area.php file via the 'id' parameter. This allows remote attackers to execute arbitrary SQL commands on the database. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • Campcodes Supplier 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 including data theft, data manipulation, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

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

🟢

If Mitigated

Limited impact with proper input validation and database permissions, though SQL injection remains a serious risk.

🌐 Internet-Facing: HIGH - The vulnerability can be exploited remotely without authentication, making internet-facing instances extremely vulnerable.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but have reduced attack surface compared to internet-facing deployments.

🎯 Exploit Status

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

Public exploit details are available on GitHub. The vulnerability requires no authentication and has simple exploitation vectors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch is available. Consider implementing input validation and parameterized queries in the affected file, or migrate to a different supplier management system.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block exploitation attempts.

Input Validation Filter

all

Implement server-side input validation to sanitize the 'id' parameter in /admin/edit_area.php.

🧯 If You Can't Patch

  • Isolate the system from the internet and restrict access to trusted networks only.
  • Implement strict database permissions, ensuring the application database user has minimal privileges.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/edit_area.php endpoint with SQL injection payloads in the 'id' parameter and observe database errors or unexpected behavior.

Check Version:

Check the application version in the admin panel or configuration files.

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and that input validation is properly implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in request logs for /admin/edit_area.php
  • Database error messages in application logs

Network Indicators:

  • HTTP requests to /admin/edit_area.php with SQL keywords in parameters
  • Unusual database query patterns from the application server

SIEM Query:

source="web_logs" AND uri="/admin/edit_area.php" AND (param="id" AND value MATCH "(?i)(union|select|insert|update|delete|drop|--|#|/*)")

🔗 References

📤 Share & Export