GHSA-rmmc-8cqj-hfp3

Suggest an improvement
Source
https://github.com/advisories/GHSA-rmmc-8cqj-hfp3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-rmmc-8cqj-hfp3/GHSA-rmmc-8cqj-hfp3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rmmc-8cqj-hfp3
Published
2020-09-03T18:24:43Z
Modified
2020-08-31T18:46:51Z
Summary
Authentication Bypass in otpauth
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-287"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:46:51Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / otpauth

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.2.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-rmmc-8cqj-hfp3/GHSA-rmmc-8cqj-hfp3.json"