CVE-2025-14939

4.7 MEDIUM

📋 TL;DR

This SQL injection vulnerability in Online Appointment Booking System 1.0 allows attackers to manipulate database queries through the managername parameter in /admin/deletemanager.php. Organizations using this specific version are affected, particularly those with internet-facing installations. The exploit is publicly available and can be executed remotely.

💻 Affected Systems

Products:
  • Online Appointment Booking System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects installations with the vulnerable /admin/deletemanager.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, or deletion of all appointment and user data, potentially leading to system unavailability.

🟠

Likely Case

Unauthorized access to sensitive appointment data, manipulation of booking records, or privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only affecting non-critical data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires access to admin interface but SQL injection is straightforward once authenticated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or input validation to the deletemanager.php file

Modify PHP code to use prepared statements: $stmt = $conn->prepare('DELETE FROM managers WHERE managername = ?'); $stmt->bind_param('s', $managername);

Access Restriction

all

Restrict access to /admin/deletemanager.php file

Add .htaccess with: Order Deny,Allow
Deny from all
Allow from 192.168.1.0/24
Or use web server configuration to restrict access

🧯 If You Can't Patch

  • Implement Web Application Firewall (WAF) with SQL injection rules
  • Restrict network access to the application to trusted IPs only

🔍 How to Verify

Check if Vulnerable:

Check if /admin/deletemanager.php exists and accepts managername parameter without proper input validation

Check Version:

Check application files or documentation for version information

Verify Fix Applied:

Test SQL injection attempts against the parameter to ensure they are blocked or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • Unexpected DELETE operations on manager table

Network Indicators:

  • HTTP POST requests to /admin/deletemanager.php with SQL injection payloads
  • Unusual database connection patterns

SIEM Query:

source="web_server" AND uri="/admin/deletemanager.php" AND (payload="' OR " OR payload="--" OR payload="UNION")

🔗 References

📤 Share & Export