CVE-2024-4966

7.3 HIGH

📋 TL;DR

This critical vulnerability in SourceCodester SchoolWebTech 1.0 allows attackers to upload arbitrary files via the /improve/home.php endpoint. Attackers can exploit this remotely to potentially execute malicious code on the server. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • SourceCodester SchoolWebTech
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation with the /improve/home.php endpoint accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via remote code execution, data theft, and server takeover.

🟠

Likely Case

Malware deployment, backdoor installation, or website defacement through uploaded malicious files.

🟢

If Mitigated

Limited impact with proper file upload restrictions and web application firewalls 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.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Restrict File Uploads

all

Implement strict file type validation and size limits for uploads.

Disable Vulnerable Endpoint

all

Block access to /improve/home.php via web server configuration.

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

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with rules to block malicious file uploads.
  • Restrict network access to the application and monitor for suspicious upload activities.

🔍 How to Verify

Check if Vulnerable:

Check if /improve/home.php exists and accepts file uploads without proper validation.

Check Version:

Check application version in admin panel or configuration files.

Verify Fix Applied:

Test file upload functionality with restricted file types and verify endpoint blocking.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /improve/home.php
  • Uploads of executable file types like .php, .exe

Network Indicators:

  • POST requests to /improve/home.php with file uploads
  • Unusual outbound connections after uploads

SIEM Query:

source="web_logs" AND uri="/improve/home.php" AND method="POST" AND file_upload="true"

🔗 References

📤 Share & Export