CVE-2024-5119

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in SourceCodester Event Registration System 1.0 allows remote attackers to execute arbitrary SQL commands via the last_id/event_id parameters in the /classes/Master.php?f=load_registration endpoint. Organizations using this specific version of the event registration system are affected, potentially exposing sensitive database information.

💻 Affected Systems

Products:
  • SourceCodester Event Registration System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects the specific version mentioned; other versions may also be vulnerable but not confirmed.

📦 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 if database functions allow it.

🟠

Likely Case

Unauthorized access to sensitive registration data, personal information exposure, and potential privilege escalation within the application.

🟢

If Mitigated

Limited information disclosure if proper input validation and WAF rules are in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available, or implement workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for the last_id and event_id parameters.

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns targeting the vulnerable endpoint.

🧯 If You Can't Patch

  • Isolate the vulnerable system from the internet and restrict access to internal networks only.
  • Implement network segmentation and monitor all traffic to the /classes/Master.php endpoint for suspicious patterns.

🔍 How to Verify

Check if Vulnerable:

Test the /classes/Master.php?f=load_registration endpoint with SQL injection payloads in last_id or event_id parameters and observe database errors or unexpected responses.

Check Version:

Check the application's version information in the admin panel or configuration files.

Verify Fix Applied:

After implementing fixes, test with the same payloads to ensure they are properly sanitized or blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in URL parameters
  • Multiple failed database queries from single IP
  • Access to /classes/Master.php with suspicious parameter values

Network Indicators:

  • HTTP requests containing SQL keywords (UNION, SELECT, etc.) in URL parameters
  • Abnormal traffic patterns to the vulnerable endpoint

SIEM Query:

source="web_server" AND (url="*Master.php*" AND (param="*last_id*" OR param="*event_id*") AND (value="*UNION*" OR value="*SELECT*" OR value="*OR 1=1*"))

🔗 References

📤 Share & Export