Vulnerability library
Security checkJanuary 09, 2023

Authentication Bypass in otpauth

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmotpauth

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Versions of otpauth prior to 3.2.8 are vulnerable to Authentication Bypass. The package’s totp.validate() function may return positive values for single digit tokens even if they are invalid. This may allow attackers to bypass the OTP authentication by providing single digit tokens.

Recommendation

Update the otpauth package to the latest compatible version. Followings are version details:

  • Affected version(s): < 3.2.8
  • Patched version(s): 3.2.8

References

Could your website be exposed too?

SmartScanner can check your website for Authentication Bypass in otpauth and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023