CVE-2024-13276

7.5 HIGH

📋 TL;DR

This vulnerability in Drupal File Entity module allows attackers to access sensitive files through forceful browsing by manipulating URLs. It affects Drupal 7 sites using File Entity module versions before 7.x-2.39.

💻 Affected Systems

Products:
  • Drupal File Entity (fieldable files) module
Versions: 7.x-* versions before 7.x-2.39
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Drupal 7 installations with the File Entity module enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could access sensitive files containing credentials, configuration data, or user information, potentially leading to full system compromise.

🟠

Likely Case

Unauthorized access to uploaded files that should be protected, potentially exposing sensitive user data or internal documents.

🟢

If Mitigated

With proper access controls and file permissions, impact is limited to files that should already be publicly accessible.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Requires knowledge of file paths and some trial-and-error to find sensitive files.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 7.x-2.39

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

Restart Required: No

Instructions:

1. Update File Entity module to version 7.x-2.39 or later. 2. Clear Drupal caches. 3. Verify the update was successful.

🔧 Temporary Workarounds

Restrict file access via .htaccess

Apache

Add access restrictions to sensitive file directories

Add 'Deny from all' to .htaccess in sensitive directories

🧯 If You Can't Patch

  • Disable the File Entity module if not essential
  • Implement strict file permission controls on server

🔍 How to Verify

Check if Vulnerable:

Check File Entity module version in Drupal admin at Reports > Available updates

Check Version:

drush pm-list | grep 'file_entity'

Verify Fix Applied:

Confirm File Entity module version is 7.x-2.39 or higher

📡 Detection & Monitoring

Log Indicators:

  • Multiple 403/404 errors for file paths
  • Unusual file access patterns

Network Indicators:

  • Repeated requests to file paths with incremental names/numbers

SIEM Query:

source="drupal_access" AND (status=403 OR status=404) AND uri LIKE "%.php" OR uri LIKE "%.txt" OR uri LIKE "%.conf"

🔗 References

📤 Share & Export