CVE-2024-33999CWE-20

moodle: unsafe direct use of $_SERVER['HTTP_REFERER'] in admin/tool/mfa/index.php

Critical · published May 31, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
44.7
In the wild
Unconfirmed
What it is

🔥 A crafted referrer URL could skip your MFA, letting attackers slip through the door like a guest who never showed ID! Think of your multi-factor authentication (MFA) as a bouncer checking IDs at the club. If the bouncer doesn’t verify the guest list properly and trusts a fake ID, anyone could stroll in without being stopped! This vulnerability allows attackers to bypass MFA by exploiting the unfiltered referrer URL, which is absolutely devastating. They could gain unauthorized access to sensitive areas of your application, leaving your data vulnerable and exposed. With a CVSS score of 9.8, this is a critical issue that needs immediate attention!

Put simply

Think of your multi-factor authentication (MFA) as a bouncer checking IDs at the club. If the bouncer doesn’t verify the guest list properly and trusts a fake ID, anyone could stroll in without being stopped! The vulnerability exists because the application directly uses the referrer URL without proper sanitization, allowing an attacker to craft it in a way that bypasses MFA checks.

What to do

This vulnerability allows attackers to bypass MFA by exploiting the unfiltered referrer URL, which is absolutely devastating. They could gain unauthorized access to sensitive areas of your application, leaving your data vulnerable and exposed. With a CVSS score of 9.8, this is a critical issue that needs immediate attention! To mitigate this risk, implement robust sanitization of the referrer URLs before using them in your MFA logic. Review and update your authentication flow to ensure that only validated, expected URLs are processed. Don’t let this vulnerability linger! You've got this! By taking these steps, you'll bolster your defenses and keep the gates secure. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00541 · 44.7th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2024-05-31T19:53Z
EPSS history
Timeline
  • 31 MAY 19:53Z
    moodle: unsafe direct use of $_SERVER['HTTP_REFERER'] in admin/tool/mfa/index.php
    cvelistv5