Skip to content

A Two-Factor Authentication (2FA) bypass vulnerability in "Simple 2FA Plugin for Moodle" by LMS Doctor

Notifications You must be signed in to change notification settings

FlaviuPopescu/CVE-2022-28601

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

CVE-2022-28601

A Two-Factor Authentication (2FA) bypass vulnerability in "Simple 2FA Plugin for Moodle" by LMS Doctor

Vulnerability Details

Risk : Medium

Vendor: LMS Doctor - Simple 2 Factor Authentication Plugin For Moodle

Disclosed by: Flaviu Popescu

Description: Two-Factor Authentication Bypass vulnerability in The Simple 2FA Plugin for Moodle, by "LMS Doctor" allows attackers to overwrite the phone number attached to an account. Thus allowing them to bypass the second stage of the verification.

Proof of concept: The example below shows the initial login process using a self-registered account.

POST /login/index.php

image

After entering their username and password, the website sends the account owner a six-digit code to their mobile device, as shown below:

POST /auth/simple2fa/confirm.php

image

If an attacker then force browses to the following URL instead of providing the 2FA code, they are able to update the phone number registered to the account.

POST /auth/simple2fa/profile.php

image

A new phone number belonging to the attacker is added to the account. The login process is then repeated, but this time the six-digit pin code will be received on the attacker's device. The newly generated six-digit pin code is then passed into the 2FA authentication portal which now shows the attacker's phone number.

POST /auth/simple2fa/confirm.php

image

The attacker is then granted access to the website effectively bypassing the second stage of the authentication process.

About

A Two-Factor Authentication (2FA) bypass vulnerability in "Simple 2FA Plugin for Moodle" by LMS Doctor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published