Reset Password Email/SMS OTP
The module allows password resets for accounts that have been blocked. Anyone could trigger this process to change the password for a blocked user and potentially view hidden information. They could only use the new password if an administrator unblocks the account.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youSites are affected if someone with the right access unblocks the affected user account.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate Reset Password Email/SMS OTP to 1.0.5.
For developers: what the fix changed
The fix ensures that the user account is active during the OTP verification steps by introducing the `loadOtpRecord` method in `src/Form/EmailOTPCheck.php`, which explicitly checks `$account->isActive()` before allowing the password reset to proceed.
Also in this release The release also adds Twilio SMS integration, hashes OTPs in the database, introduces flood control, refactors code into services, and adds Drupal 12 compatibility.
.cspell-project-words.txt+3 −0.gitlab-ci.yml+5 −0composer.json+19 −0config/install/reset_password_email_otp.settings.yml+16 −4config/schema/reset_password_email_otp.yml+32 −6css/reset-password-email-otp.css+14 −0reset_password_email_otp.api.php+39 −0reset_password_email_otp.info.yml+2 −2reset_password_email_otp.install+38 −1reset_password_email_otp.libraries.yml+4 −0reset_password_email_otp.module+6 −35reset_password_email_otp.post_update.php+13 −0