CVE-2025-7436

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Campcodes Online Recruitment Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the ID parameter in the /admin/ajax.php endpoint. Attackers can potentially access, modify, or delete database contents. All deployments of version 1.0 are affected.

💻 Affected Systems

Products:
  • Campcodes Online Recruitment Management System
Versions: 1.0
Operating Systems: Any
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable; requires the /admin/ajax.php endpoint to be accessible

📦 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 RCE chaining

🟠

Likely Case

Unauthorized access to sensitive recruitment data (applicant info, job postings, admin credentials), data manipulation, or denial of service

🟢

If Mitigated

Limited impact if proper input validation and WAF rules block malicious SQL payloads

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires admin authentication; SQL injection is straightforward with publicly available payloads

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or proper input validation for the ID parameter in ajax.php

Modify /admin/ajax.php to use prepared statements: $stmt = $conn->prepare('DELETE FROM vacancies WHERE id = ?'); $stmt->bind_param('i', $_GET['ID']);

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable endpoint

Add WAF rule: deny requests to /admin/ajax.php?action=delete_vacancy with SQL keywords in ID parameter

🧯 If You Can't Patch

  • Restrict access to /admin/ directory to trusted IP addresses only
  • Disable or remove the vulnerable ajax.php file if functionality is not required

🔍 How to Verify

Check if Vulnerable:

Test with SQL injection payload: /admin/ajax.php?action=delete_vacancy&ID=1' OR '1'='1

Check Version:

Check system version in admin panel or readme files

Verify Fix Applied:

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

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple DELETE requests to /admin/ajax.php with suspicious ID parameters

Network Indicators:

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

SIEM Query:

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

🔗 References

📤 Share & Export