CVE-2024-2573

7.3 HIGH

📋 TL;DR

This critical vulnerability in SourceCodester Employee Task Management System 1.0 allows remote attackers to execute code after redirect via the /task-info.php file. The execution after redirect flaw enables attackers to potentially run arbitrary code on affected systems. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • SourceCodester Employee Task Management System
Versions: 1.0
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation of version 1.0. No special configuration is required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise, data theft, and lateral movement within the network.

🟠

Likely Case

Unauthorized access to sensitive employee task data, potential privilege escalation, and system manipulation.

🟢

If Mitigated

Limited impact with proper network segmentation and access controls, potentially only affecting the application layer.

🌐 Internet-Facing: HIGH - Attack can be launched remotely without authentication, making internet-facing instances extremely vulnerable.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but require initial network access.

🎯 Exploit Status

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

Public exploit details are available on GitHub, making this easily exploitable by attackers with basic skills.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider removing the system or implementing workarounds.

🔧 Temporary Workarounds

Block access to vulnerable endpoint

all

Restrict access to /task-info.php via web server configuration or firewall rules

# Apache: RewriteRule ^/task-info\.php$ - [F,L]
# Nginx: location = /task-info.php { deny all; }

Implement WAF rules

all

Add web application firewall rules to detect and block exploitation attempts

# ModSecurity: SecRule REQUEST_URI "@contains task-info.php" "id:1001,phase:1,deny"

🧯 If You Can't Patch

  • Remove the system from production immediately
  • Isolate the system in a restricted network segment with no internet access

🔍 How to Verify

Check if Vulnerable:

Check if /task-info.php exists and is accessible on your installation. Review application version in admin panel or source files.

Check Version:

Check admin panel or look for version information in source code files

Verify Fix Applied:

Test if /task-info.php endpoint is no longer accessible or returns proper error codes. Verify workaround implementations.

📡 Detection & Monitoring

Log Indicators:

  • Unusual requests to /task-info.php
  • Multiple failed redirect attempts
  • Suspicious PHP execution patterns

Network Indicators:

  • HTTP requests to /task-info.php with unusual parameters
  • Multiple redirect responses from the application

SIEM Query:

source="web_server" AND uri="/task-info.php" AND (status=302 OR status=3*)

🔗 References

📤 Share & Export