CVE-2025-8502

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability exists in the Online Medicine Guide 1.0 software, specifically in the /changepass.php file's 'ups' parameter. This allows remote attackers to execute arbitrary SQL commands on the database. All users running version 1.0 of this software are affected.

💻 Affected Systems

Products:
  • code-projects Online Medicine Guide
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects installations with the vulnerable /changepass.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Unauthorized access to sensitive medical data, user credentials, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact if proper input validation and parameterized queries are implemented, though some information disclosure may still occur.

🌐 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: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider implementing parameterized queries and input validation in /changepass.php, or migrate to a different solution.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious requests to /changepass.php

Access Restriction

linux

Restrict access to /changepass.php to authenticated users only or block it entirely if not needed

# Apache: RewriteRule ^changepass\.php$ - [F]
# Nginx: location ~ /changepass\.php$ { deny all; }

🧯 If You Can't Patch

  • Implement network segmentation to isolate the vulnerable system from critical assets
  • Enable detailed logging and monitoring for SQL injection attempts on /changepass.php

🔍 How to Verify

Check if Vulnerable:

Test the /changepass.php endpoint with SQL injection payloads in the 'ups' parameter (e.g., ' OR '1'='1). Use tools like sqlmap with caution: sqlmap -u "http://target/changepass.php?ups=test"

Check Version:

Check the software version in the application interface or configuration files, typically in about.php or config.php

Verify Fix Applied:

After implementing fixes, retest with the same SQL injection payloads to confirm they are blocked or sanitized.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in POST/GET parameters to /changepass.php
  • Multiple failed authentication attempts followed by SQL error messages

Network Indicators:

  • HTTP requests to /changepass.php containing SQL keywords (SELECT, UNION, etc.) in parameters

SIEM Query:

source="web_logs" AND uri_path="/changepass.php" AND (param="*SELECT*" OR param="*UNION*" OR param="*OR*1*1*")

🔗 References

📤 Share & Export