CVE-2024-13311
📋 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
- Drupal Allow All File Extensions module
📦 What is this software?
Allow All File Extensions For File Fields by Allow All File Extensions For File Fields Project
View all CVEs affecting Allow All File Extensions For File Fields →
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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.
🎯 Exploit Status
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
allRemove '.*' wildcard from file field settings and specify allowed extensions explicitly.
Disable Module
DrupalTemporarily 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"))