CVE-2025-12201

4.7 MEDIUM

📋 TL;DR

This vulnerability allows remote attackers to upload arbitrary files through the image parameter in the User Management Interface of ajayrandhawa User-Management-PHP-MYSQL. This affects all deployments using versions up to fedcf58797bf2791591606f7b61fdad99ad8bff1. Attackers can exploit this to upload malicious files like webshells.

💻 Affected Systems

Products:
  • ajayrandhawa User-Management-PHP-MYSQL
Versions: All versions up to fedcf58797bf2791591606f7b61fdad99ad8bff1
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /admin/edit-user.php component. Rolling release model means specific version numbers aren't available.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via webshell upload leading to remote code execution, data theft, and lateral movement.

🟠

Likely Case

Unauthorized file upload leading to defacement, malware distribution, or limited server access.

🟢

If Mitigated

File upload blocked or restricted to safe types only, preventing exploitation.

🌐 Internet-Facing: HIGH - Remote exploitation possible with public exploit available.
🏢 Internal Only: MEDIUM - Still exploitable from internal networks but attack surface reduced.

🎯 Exploit Status

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

Exploit details available in public documentation. Attack requires access to user management interface.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown - vendor unresponsive

Vendor Advisory: None available

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Implement file upload validation

PHP

Add server-side validation to restrict uploaded files to specific safe extensions and verify file content.

Modify /admin/edit-user.php to include: $allowed_extensions = ['jpg', 'jpeg', 'png', 'gif']; $file_extension = strtolower(pathinfo($_FILES['image']['name'], PATHINFO_EXTENSION)); if(!in_array($file_extension, $allowed_extensions)) { die('Invalid file type'); }

Restrict upload directory permissions

Linux

Set upload directory to prevent execution of uploaded files.

chmod 644 /path/to/upload/directory/*
chown www-data:www-data /path/to/upload/directory/

🧯 If You Can't Patch

  • Disable the user management interface or restrict access to trusted IP addresses only.
  • Implement a web application firewall (WAF) with file upload protection rules.

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a file with a malicious extension (e.g., .php, .exe) through the /admin/edit-user.php interface.

Check Version:

Check git commit hash: git log --oneline -1

Verify Fix Applied:

Test that only allowed file types (images) can be uploaded and that uploaded files cannot be executed.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /admin/edit-user.php
  • Uploads of non-image file types
  • Large number of upload requests

Network Indicators:

  • POST requests to /admin/edit-user.php with file uploads
  • Subsequent requests to uploaded files with executable extensions

SIEM Query:

source="web_server" AND (uri="/admin/edit-user.php" AND method="POST" AND content_type LIKE "%multipart/form-data%")

🔗 References

📤 Share & Export