CVE-2024-13257

5.3 MEDIUM

📋 TL;DR

This CVE describes an incorrect authorization vulnerability in Drupal Commerce View Receipt that allows forceful browsing. Attackers can bypass intended access controls to view order receipts they shouldn't have permission to access. This affects all Drupal Commerce View Receipt installations from initial release through version 1.0.2.

💻 Affected Systems

Products:
  • Drupal Commerce View Receipt
Versions: 0.0.0 through 1.0.2
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Drupal installations with Commerce View Receipt module enabled. Requires Drupal Commerce to be installed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Unauthorized users gain access to sensitive customer order information including personal data, payment details, and purchase history, potentially leading to data breaches and privacy violations.

🟠

Likely Case

Attackers access order receipts containing customer information, order details, and potentially partial payment information, compromising customer privacy and violating data protection regulations.

🟢

If Mitigated

With proper access controls and monitoring, impact is limited to unauthorized viewing of order information without modification capabilities.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires some level of access to the Drupal site but doesn't require administrative privileges. Attackers can manipulate URLs or use automated tools to access unauthorized receipts.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.3

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

Restart Required: No

Instructions:

1. Backup your Drupal site and database. 2. Update Commerce View Receipt module to version 1.0.3 via Drupal's update manager or Composer. 3. Clear Drupal caches. 4. Verify the module is functioning correctly.

🔧 Temporary Workarounds

Disable Commerce View Receipt Module

linux

Temporarily disable the vulnerable module until patching is possible

drush pm-disable commerce_view_receipt

Implement Access Control Rules

all

Add custom access control checks to receipt viewing functionality

🧯 If You Can't Patch

  • Implement network-level access controls to restrict access to receipt viewing endpoints
  • Enable detailed logging for all receipt access attempts and monitor for unauthorized access patterns

🔍 How to Verify

Check if Vulnerable:

Check Commerce View Receipt module version in Drupal admin at /admin/modules or using drush: drush pm-list | grep commerce_view_receipt

Check Version:

drush pm-list --fields=name,version --format=table | grep commerce_view_receipt

Verify Fix Applied:

Verify module version is 1.0.3 or higher and test that unauthorized users cannot access receipts they shouldn't have permission to view

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed access attempts to receipt URLs
  • Unauthorized users accessing /commerce/order/*/receipt patterns
  • Access logs showing receipt views from unexpected user roles

Network Indicators:

  • Unusual traffic patterns to receipt endpoints
  • Requests bypassing normal authentication flows

SIEM Query:

source="drupal_access_log" AND (url="/commerce/order/*/receipt" OR url LIKE "%/receipt%") AND user_role NOT IN ("administrator","authenticated_with_permissions")

🔗 References

📤 Share & Export