CVE-2025-69559

9.8 CRITICAL

📋 TL;DR

Computer Book Store 1.0 contains an unrestricted file upload vulnerability in admin_add.php that allows attackers to upload malicious files. This can lead to remote code execution or complete system compromise. All systems running this software version are affected.

💻 Affected Systems

Products:
  • code-projects Computer Book Store
Versions: 1.0
Operating Systems: Any OS running PHP web server
Default Config Vulnerable: ⚠️ Yes
Notes: Requires PHP environment with file upload functionality enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system takeover through remote code execution, data theft, and persistent backdoor installation.

🟠

Likely Case

Webshell upload leading to server compromise, data exfiltration, and lateral movement within the network.

🟢

If Mitigated

File upload blocked or sanitized, preventing malicious file execution.

🌐 Internet-Facing: HIGH - Directly accessible web interface with unauthenticated file upload capability.
🏢 Internal Only: MEDIUM - Still vulnerable if accessed internally, but attack surface is reduced.

🎯 Exploit Status

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

Simple HTTP POST request with malicious file upload to admin_add.php endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Restrict File Upload Types

all

Implement server-side validation to only allow specific file extensions (e.g., .jpg, .png) and verify file content.

Modify admin_add.php to include: $allowed_extensions = array('jpg', 'png', 'gif');
Add MIME type verification: $finfo = finfo_open(FILEINFO_MIME_TYPE);

Disable admin_add.php

linux

Temporarily disable or rename the vulnerable file to prevent exploitation.

mv admin_add.php admin_add.php.disabled
Or add: exit('Disabled for security'); at top of file

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file uploads to admin_add.php
  • Restrict network access to the application using firewall rules

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a file with .php extension to /admin_add.php endpoint. If successful, system is vulnerable.

Check Version:

Check software version in application interface or configuration files.

Verify Fix Applied:

Attempt same upload test - should be rejected with proper error message.

📡 Detection & Monitoring

Log Indicators:

  • HTTP POST requests to admin_add.php with file uploads
  • Unusual file creations in upload directories
  • .php files in upload folders

Network Indicators:

  • POST requests to admin_add.php with multipart/form-data containing executable files

SIEM Query:

source="web_logs" AND uri="/admin_add.php" AND method="POST" AND content_type="multipart/form-data"

🔗 References

📤 Share & Export