CVE-2024-13311

7.3 HIGH

📋 TL;DR

This vulnerability in Drupal's 'Allow All File Extensions' module allows attackers to upload malicious files with any extension, bypassing security restrictions. It affects Drupal sites using this contributed module with the '.*' wildcard setting. Attackers could upload executable scripts or malware disguised as harmless files.

💻 Affected Systems

Products:
  • Drupal Allow All File Extensions module
Versions: All versions before 8.x-1.2
Operating Systems: All operating systems running Drupal
Default Config Vulnerable: ⚠️ Yes
Notes: Only vulnerable when using '.*' wildcard in file field settings. Other extension patterns may also be affected.

📦 What is this software?

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise, data theft, or ransomware deployment.

🟠

Likely Case

Malware upload leading to website defacement, data exfiltration, or backdoor installation.

🟢

If Mitigated

Limited impact if file execution is restricted and proper file validation is in place.

🌐 Internet-Facing: HIGH - Public websites allow direct file uploads from untrusted sources.
🏢 Internal Only: MEDIUM - Internal users could still upload malicious files intentionally or accidentally.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires file upload capability and knowledge of the vulnerability. No public exploits known at this time.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 8.x-1.2

Vendor Advisory: https://www.drupal.org/sa-contrib-2024-075

Restart Required: No

Instructions:

1. Update the 'Allow All File Extensions' module to version 8.x-1.2 or later. 2. Clear Drupal caches. 3. Review and update file field configurations.

🔧 Temporary Workarounds

Restrict File Extensions

all

Remove '.*' wildcard from file field settings and specify allowed extensions explicitly.

Disable Module

Drupal

Temporarily disable the 'Allow All File Extensions' module until patched.

drush pm-disable allow_all_file_extensions

🧯 If You Can't Patch

  • Implement web application firewall rules to block suspicious file uploads.
  • Configure server to prevent execution of uploaded files in public directories.

🔍 How to Verify

Check if Vulnerable:

Check if 'Allow All File Extensions' module is enabled and version is below 8.x-1.2. Review file field settings for '.*' wildcard usage.

Check Version:

drush pm-list | grep allow_all_file_extensions

Verify Fix Applied:

Confirm module version is 8.x-1.2 or higher. Test file uploads with disallowed extensions to ensure they are rejected.

📡 Detection & Monitoring

Log Indicators:

  • File upload attempts with unusual extensions
  • Multiple failed upload attempts
  • Successful uploads of executable files

Network Indicators:

  • HTTP POST requests to file upload endpoints with suspicious file types

SIEM Query:

source="drupal_access.log" AND (method="POST" AND uri CONTAINS "/file/upload" AND (extension="php" OR extension="exe" OR extension="sh"))

🔗 References

📤 Share & Export