CVE-2025-8255

7.3 HIGH

📋 TL;DR

This critical vulnerability in Exam Form Submission 1.0 allows remote attackers to upload arbitrary files via the /register.php endpoint. Attackers can potentially execute malicious code on the server by uploading files with dangerous extensions. All systems running this software with the vulnerable /register.php endpoint accessible are affected.

💻 Affected Systems

Products:
  • code-projects Exam Form Submission
Versions: 1.0
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Any installation with /register.php accessible is vulnerable. The vulnerability exists in the image upload functionality.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Webshell deployment leading to unauthorized access, data exfiltration, and lateral movement within the network.

🟢

If Mitigated

File upload attempts blocked or quarantined with no successful exploitation.

🌐 Internet-Facing: HIGH - Remote exploitation without authentication makes internet-facing instances extremely vulnerable.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit this, but requires network access.

🎯 Exploit Status

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

Public exploit available on GitHub. Simple file upload manipulation required.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider removing or replacing the software.

🔧 Temporary Workarounds

Block /register.php Access

all

Restrict access to the vulnerable endpoint using web server configuration

# Apache: <Location /register.php> Require all denied </Location>
# Nginx: location /register.php { deny all; }

Implement File Upload Restrictions

all

Add server-side validation for file uploads including extension whitelisting and content checking

# Add to PHP configuration or application code
# Example: $allowed_extensions = ['jpg', 'png', 'gif'];
# Implement mime-type verification and file size limits

🧯 If You Can't Patch

  • Isolate the system in a DMZ with strict network segmentation
  • Implement WAF rules to block malicious file upload patterns

🔍 How to Verify

Check if Vulnerable:

Check if /register.php exists and accepts file uploads without proper validation. Attempt to upload a test file with dangerous extension.

Check Version:

Check application files or documentation for version information. Typically found in README or configuration files.

Verify Fix Applied:

Test that file uploads are properly validated and restricted. Verify /register.php endpoint is blocked or removed.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /register.php
  • Files with suspicious extensions (.php, .exe, .sh) being uploaded
  • Large number of upload attempts

Network Indicators:

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

SIEM Query:

source="web_server" AND (uri="/register.php" AND method="POST" AND content_type="multipart/form-data")

🔗 References

📤 Share & Export