Skip to content
Threat Feed
low advisory

Authentication Bypass in Simple 2 Factor Authentication Plugin for Moodle

CVE-2022-28601 allows an authenticated low-privileged user to bypass 2FA by overwriting a target account's associated phone number via the plugin's profile management endpoint.

CVE search metadata

CVE search record: CVE-2022-28601. Severity: medium. CVSS: 6.5. EPSS: 1.71%. KEV: no. Product: Simple 2 Factor Authentication Plugin For Moodle. Brief: Authentication Bypass in Simple 2 Factor Authentication Plugin for Moodle. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2022-28601/

CVE-2022-28601 is a 2FA bypass vulnerability affecting the 'Simple 2 Factor Authentication' plugin for Moodle. The vulnerability allows a low-privileged user to exploit the plugin's profile management functionality to modify the phone number associated with an account. By overwriting the victim's legitimate phone number with an attacker-controlled number, the attacker forces the system to send the 2FA verification PIN to a device they control. This effectively grants the attacker control over the second factor of authentication, facilitating account takeover. The vulnerability exists within the plugin's handling of the /auth/simple2fa/profile.php endpoint. Although this is an older CVE, the recent publication of functional proof-of-concept (PoC) material on Sploitus necessitates immediate remediation for organizations still utilizing this specific Moodle plugin.

Attack Chain

  1. The attacker authenticates to the Moodle environment using a low-privileged account via POST /login/index.php.
  2. The system triggers a 2FA challenge, expecting a PIN input via POST /auth/simple2fa/confirm.php.
  3. Instead of completing the 2FA process, the attacker navigates to the plugin's profile management interface.
  4. The attacker sends a POST request to /auth/simple2fa/profile.php to overwrite the account's associated phone number.
  5. The server updates the record, binding the attacker's phone number to the target user account.
  6. The attacker re-initiates the login process or triggers a new 2FA request.
  7. The system sends the 2FA PIN to the phone number updated in step 4.
  8. The attacker receives the PIN on their device and submits it to the portal to bypass the authentication gate.

Impact

Successful exploitation allows unauthorized users to bypass secondary authentication, leading to full account takeover for any account targeted by an attacker. This impacts the confidentiality and integrity of educational data stored within the Moodle LMS. All versions of the Lmsdoctor 'Simple 2 Factor Authentication' plugin for Moodle are affected.

Recommendation

  • Audit Moodle server access logs for repeated POST requests to /auth/simple2fa/profile.php by low-privileged user accounts.
  • Disable or uninstall the 'Simple 2 Factor Authentication' plugin for Moodle if an official patch is not available from the vendor.
  • Implement compensating controls such as IP-based rate limiting on the /auth/simple2fa/ directory to detect and block forced browsing or automated exploitation attempts.

Immediate actions

Deploy Sigma rule to monitor for exploitation attempts

Detection Engineering 24h

Mitigations

Disable vulnerable plugin

immediate IT Operations

CVE-2022-28601

Detection coverage 1

Detect CVE-2022-28601 Exploitation - 2FA Profile Update

medium

Detects exploitation attempts against CVE-2022-28601 by monitoring POST requests to the profile update endpoint of the Simple 2FA plugin.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →