Insecure Randomness Affecting net-http-digest_auth package, versions <1.3


0.0
medium

Snyk CVSS

    Attack Complexity High

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-RUBY-NETHTTPDIGESTAUTH-20374
  • published 12 Jun 2017
  • disclosed 18 May 2012
  • credit Eric Hodel

Introduced: 18 May 2012

CVE NOT AVAILABLE CWE-330 Open this link in a new tab

How to fix?

Upgrade net-http-digest_auth to version 1.3 or higher.

Overview

net-http-digest_auth is an implementation of RFC 2617 - Digest Access Authentication.

Affected versions of the package are vulnerable to Insecure Randomness due to using Kernel#rand which returns a pseudo-random number, which could be easily guessed, and shouldn't be used in a security-sensitive context.

References