CVE-2025-13544

6.3 MEDIUM

📋 TL;DR

This CVE describes an unrestricted file upload vulnerability in ashraf-kabir travel-agency software affecting the /customer_register.php endpoint. Attackers can remotely upload malicious files without authentication, potentially leading to server compromise. All deployments using affected versions are vulnerable.

💻 Affected Systems

Products:
  • ashraf-kabir travel-agency
Versions: Up to commit 1f25aa03544bc5fb7a9e846f8a7879cecdb0cad3
Operating Systems: Any OS running PHP web server
Default Config Vulnerable: ⚠️ Yes
Notes: Rolling release model means specific version numbers unavailable; all instances before fix commit are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server takeover via webshell upload leading to data exfiltration, ransomware deployment, or lateral movement within the network.

🟠

Likely Case

Webshell upload allowing persistent backdoor access, data theft, or use as attack proxy.

🟢

If Mitigated

File upload attempts logged and blocked with proper file validation and server hardening.

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

🎯 Exploit Status

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

Exploit documentation available in public GitHub repository; simple file upload manipulation required.

🛠️ 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 strict workarounds.

🔧 Temporary Workarounds

File Upload Restriction

all

Implement strict file type validation and size limits on /customer_register.php endpoint

# Add to PHP configuration or application code
# Validate file extensions, MIME types, and content
# Example: allow only .jpg, .png, .pdf with size < 2MB

Web Application Firewall Rules

all

Block suspicious file upload patterns to /customer_register.php

# WAF rule example for ModSecurity
SecRule REQUEST_FILENAME "@endsWith /customer_register.php" \
"id:1001,phase:2,deny,status:403,msg:'Blocked file upload attempt'" \
"chain"
SecRule REQUEST_METHOD "@streq POST" \
"chain"
SecRule FILES "@rx \.(php|asp|jsp|exe|sh)$" "t:lowercase"

🧯 If You Can't Patch

  • Disable /customer_register.php endpoint completely if not required
  • Implement network segmentation to isolate travel-agency server from critical assets

🔍 How to Verify

Check if Vulnerable:

Attempt to upload a test file with .php extension to /customer_register.php endpoint; if accepted, system is vulnerable.

Check Version:

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

Verify Fix Applied:

Test file upload with restricted extensions; verify only allowed file types are accepted and malicious files are rejected.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /customer_register.php
  • POST requests with executable file extensions
  • Large number of failed upload attempts

Network Indicators:

  • HTTP POST requests to /customer_register.php with file uploads
  • Unusual outbound connections from web server

SIEM Query:

source="web_logs" AND uri="/customer_register.php" AND method="POST" AND (file_extension="php" OR file_extension="exe" OR file_extension="sh")

🔗 References

📤 Share & Export