CVE-2024-6417

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in Simple Online Bidding System 1.0 allows attackers to execute arbitrary SQL commands via the id parameter in the /admin/ajax.php?action=delete_user endpoint. Attackers can potentially read, modify, or delete database contents, including sensitive user data. Organizations using this software are affected.

💻 Affected Systems

Products:
  • SourceCodester Simple Online Bidding System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. The /admin/ajax.php endpoint is typically accessible to authenticated admin users.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized data access and manipulation, including extraction of user credentials, personal information, and bidding data.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only allowing data viewing in affected tables.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub. Attack requires admin authentication, but could be combined with other vulnerabilities.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None known

Restart Required: No

Instructions:

No official patch available. Implement workarounds or replace with secure alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or proper input validation to the delete_user function in ajax.php

Modify /admin/ajax.php to use prepared statements for SQL queries

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable endpoint

WAF rule: Block requests to /admin/ajax.php?action=delete_user containing SQL keywords in id parameter

🧯 If You Can't Patch

  • Restrict network access to the bidding system, allowing only trusted IP addresses
  • Implement database-level controls: restrict application database user permissions to minimum required

🔍 How to Verify

Check if Vulnerable:

Test the /admin/ajax.php?action=delete_user endpoint with SQL injection payloads in the id parameter (requires admin authentication)

Check Version:

Check software version in admin panel or readme files

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple delete_user requests with unusual id parameters
  • Database queries with UNION, SELECT, or other SQL injection patterns

Network Indicators:

  • HTTP requests to /admin/ajax.php?action=delete_user with SQL keywords in parameters
  • Unusual database connection patterns from application server

SIEM Query:

source="web_logs" AND uri_path="/admin/ajax.php" AND query_string="*action=delete_user*" AND (query_string="*UNION*" OR query_string="*SELECT*" OR query_string="*OR*1=1*")

🔗 References

📤 Share & Export