CVE-2017-16028 Cryptographically Weak PRNG in randomatic
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()).
Which versions are affected by CVE-2017-16028?
2 open source packages ship an affected version, including randomatic. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
randomatic npm | All versions | 3.0.0 |
randomatic npm | All versions | 3.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.