Cloudanix VulnDB

CVE-2024-33999

None

CVSS

—

EPSS

0.5%

Published

May 31, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A login security feature could accidentally send users to fake websites instead of staying on the real site, which attackers might use to trick people.

Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Open Redirect
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

Unsanitized referrer URL passed directly to MFA flow enables open redirect to arbitrary external domains.

Why it matters to the business

Attackers can phish users or damage trust by redirecting them from the legitimate login flow to attacker-controlled sites, increasing risk of credential theft or session hijacking across the platform.

How an attack unfolds

An attacker crafts a specially formed URL that triggers the MFA requirement, embedding a malicious external domain in the referrer parameter; when the victim follows the link and completes MFA, the application redirects the browser to the attacker site without validation.

How to fix it

Upgrade Moodle to the commit 143c2cd5bef1268751d58bbfc6c66c1d93cb9797 or later release containing the referrer sanitization fix.

How to confirm the fix worked

Confirm the installed codebase contains commit 143c2cd5bef1268751d58bbfc6c66c1d93cb9797 and test that referrer values are sanitized before any redirect.

Typical attack path

  1. Identify MFA-protected login endpoint
  2. Craft URL with malicious referrer value
  3. Deliver link via phishing or trusted channel
  4. Victim authenticates and is redirected to attacker domain

How to detect it

Search authentication and web server logs for MFA referrer parameters containing external domains that do not match the expected application origin.

What your security team should do

  • Apply the referenced commit or newer release immediately
  • Audit recent authentication logs for unexpected external redirects
  • Review all referrer-handling code for similar unsanitized flows

The record

The referrer URL used by MFA required additional sanitizing, rather than being used directly.

Affected packages

Ecosystem Package Introduced Fixed
Packagist moodle/moodle 4.3.0 4.3.4
Bitnami moodle 4.3.0 4.3.4
Ubuntu:16.04:LTS moodle 0 No fix
Ubuntu:18.04:LTS moodle 0 No fix
Ubuntu:Pro:16.04:LTS moodle 0 No fix
Ubuntu:Pro:18.04:LTS moodle 0 No fix
packagist moodle/moodle 4.3.0 4.3.4

Related vulnerabilities