Insecure Randomness Affecting github.com/greenpau/go-authcrunch/pkg/util package, versions <1.0.42
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMGREENPAUGOAUTHCRUNCHPKGUTIL-7897571
- published 5 Sep 2024
- disclosed 18 Sep 2023
- credit Maciej Domanski, Travis Peters, David Pokora
Introduced: 18 Sep 2023
CVE-2024-21495 Open this link in a new tabHow to fix?
Upgrade github.com/greenpau/go-authcrunch/pkg/util
to version 1.0.42 or higher.
Overview
Affected versions of this package are vulnerable to Insecure Randomness due to using an insecure random number generation library which could possibly be predicted via a brute-force search. Attackers could use the potentially predictable nonce value used for authentication purposes in the OAuth flow to conduct OAuth replay attacks. In addition, insecure randomness is used while generating multifactor authentication (MFA) secrets and creating API keys in the database package.