Skip to content
OpenAdvisories
High GHSA-rmmc-8cqj-hfp3

Authentication Bypass in otpauth

Published Sep 3, 2020 · Updated Aug 31, 2020 · Assigned by GHSA

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

Upgrade to version 3.2.8 or later.

Affected packages

EcosystemPackageAffectedFixedRecord
npm otpauth < 3.2.8 3.2.8 GHSA-rmmc-8cqj-hfp3

References