CVE-2025-8809

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability in code-projects Online Medicine Guide 1.0 allows remote attackers to execute arbitrary SQL commands via the 'del' parameter in /addelidetails.php. This affects all installations of version 1.0 that expose the vulnerable endpoint. Attackers can potentially read, modify, or delete database content.

💻 Affected Systems

Products:
  • code-projects Online Medicine Guide
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Any installation with /addelidetails.php accessible is vulnerable. No special configuration required.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or remote code execution if database functions allow it.

🟠

Likely Case

Unauthorized data access, modification of medical records, or denial of service through database manipulation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or minor data exposure.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and public exploit details exist.
🏢 Internal Only: MEDIUM - Still significant if internal attackers exist, but reduced exposure surface.

🎯 Exploit Status

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

Exploit details are publicly disclosed on GitHub. SQL injection via GET/POST parameter manipulation is straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider implementing parameterized queries or input validation in /addelidetails.php.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the 'del' parameter.

Input Validation Filter

all

Add server-side validation to reject malicious input in the 'del' parameter.

🧯 If You Can't Patch

  • Block external access to /addelidetails.php using firewall rules or web server configuration.
  • Implement database user with minimal permissions (read-only if possible) for the application.

🔍 How to Verify

Check if Vulnerable:

Test by sending SQL injection payloads to the 'del' parameter in /addelidetails.php and observing database errors or unexpected behavior.

Check Version:

Check application documentation or source code for version information.

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that input validation is properly implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in access logs for /addelidetails.php
  • Database error messages containing SQL fragments

Network Indicators:

  • HTTP requests to /addelidetails.php with SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri="/addelidetails.php" AND (param="del" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "' OR '")

🔗 References

📤 Share & Export