CVE-2024-13262

4.8 MEDIUM

📋 TL;DR

This vulnerability allows attackers to inject malicious scripts into web pages generated by Drupal's View Password module, which could lead to session hijacking or credential theft. It affects all Drupal sites using View Password module versions before 6.0.4. The vulnerability requires user interaction to trigger the malicious script.

💻 Affected Systems

Products:
  • Drupal View Password module
Versions: 0.0.0 through 6.0.3
Operating Systems: All operating systems running Drupal
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Drupal sites with the View Password module installed and enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over administrative accounts, and compromise the entire Drupal site.

🟠

Likely Case

Attackers could steal user session cookies, redirect users to malicious sites, or perform actions on behalf of authenticated users.

🟢

If Mitigated

With proper input validation and output encoding, the impact is limited to potential UI disruption without data compromise.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploitation requires the attacker to trick a user into interacting with malicious input, typically through crafted links or forms.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 6.0.4

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

Restart Required: No

Instructions:

1. Update the View Password module to version 6.0.4 or later via Drupal's update manager. 2. Clear Drupal caches. 3. Verify the update was successful.

🔧 Temporary Workarounds

Disable View Password module

all

Temporarily disable the vulnerable module until patching is possible

drush pm-disable view_password

Enable Drupal's built-in XSS protection

all

Ensure Drupal's filter_xss() and check_plain() functions are properly implemented

🧯 If You Can't Patch

  • Implement Content Security Policy (CSP) headers to restrict script execution
  • Use web application firewall rules to block suspicious input patterns

🔍 How to Verify

Check if Vulnerable:

Check the module version in Drupal's Extend page or using 'drush pm-list | grep view_password'

Check Version:

drush pm-list --fields=name,version | grep view_password

Verify Fix Applied:

Confirm module version is 6.0.4 or higher and test password viewing functionality

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST/GET requests to password-related endpoints
  • JavaScript payloads in URL parameters or form submissions

Network Indicators:

  • Suspicious redirects from password pages
  • External script loading from password interfaces

SIEM Query:

source="drupal_access" AND (uri="*password*" OR uri="*view_password*") AND (query="*<script>*" OR query="*javascript:*")

🔗 References

📤 Share & Export