CVE-2024-7810

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in SourceCodester Online Graduate Tracer System 1.0 allows attackers to manipulate database queries through the id parameter in /tracking/admin/view_itprofile.php. Attackers can potentially read, modify, or delete database contents, including sensitive user information. Organizations using this specific version of the graduate tracking system are affected.

💻 Affected Systems

Products:
  • SourceCodester Online Graduate Tracer System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with the vulnerable file present and 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 student/graduate data, credential theft, 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: ✅ No
Complexity: LOW

Exploit requires admin access to reach the vulnerable endpoint, but SQL injection payloads are publicly available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Implement parameterized queries in view_itprofile.php or apply workarounds.

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize the id parameter before processing

Edit /tracking/admin/view_itprofile.php to validate id parameter as integer

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: Detect and block SQL injection patterns in URL parameters

🧯 If You Can't Patch

  • Restrict access to /tracking/admin/ directory to authorized IP addresses only
  • Implement database user with minimal required permissions (read-only if possible)

🔍 How to Verify

Check if Vulnerable:

Check if /tracking/admin/view_itprofile.php exists and test with SQL injection payloads like ' OR '1'='1

Check Version:

Check system documentation or configuration files for version information

Verify Fix Applied:

Test the vulnerable endpoint with SQL injection payloads to confirm they're blocked or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from web server
  • Multiple failed login attempts followed by SQL error messages
  • Requests to view_itprofile.php with suspicious id parameters

Network Indicators:

  • HTTP requests containing SQL keywords (SELECT, UNION, etc.) in URL parameters
  • Unusual traffic patterns to admin endpoints

SIEM Query:

web.url:*view_itprofile.php* AND (web.param:*OR* OR web.param:*UNION* OR web.param:*SELECT*)

🔗 References

📤 Share & Export