CVE-2017-16028 Cryptographically Weak PRNG in randomatic

Medium 5.3 Published Updated

The library uses a weak random number generator for OAuth tokens, allowing attackers to predict tokens and bypass authentication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-16028?

CVE-2017-16028 is a medium-severity vulnerability in HackerOne react-native-meteor-oauth node module, published on 4 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

react-native-meteor-oauth is a library for Oauth2 login to a Meteor server in React Native. The oauth Random Token is generated using a non-cryptographically strong RNG (Math.random()).

Weakness: CWE-338, CWE-330

Which versions are affected by CVE-2017-16028?

2 open source packages ship an affected version, including randomatic. It affects 1 product.

PackageAffectedFixed in
randomatic npmAll versions3.0.0
randomatic npmAll versions3.0.0

Products include Randomatic Project Randomatic.

How do I fix CVE-2017-16028?

Upgrade randomatic to 3.0.0 or later.

Is CVE-2017-16028 being exploited?

There is no known exploitation of CVE-2017-16028 in the wild and no public exploit code.

Sources

Also known as GHSA-6g33-f262-xjp4.

Is CVE-2017-16028 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free