hoch7.5
CVE-2019-25061
Insecure PRNG use in random_password_generator
Auswirkung
The random_password_generator (aka RandomPasswordGenerator) gem through 1.0.0 for Ruby uses Kernel#rand to generate passwords, which, due to its cyclic nature, can facilitate password prediction.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | random_password_generator | <= 1.0.0 | nicht erfasst |
Betroffene Produkte · Random Password Generator Project
| Produkt | Betroffene Versionen |
|---|---|
| Random Password Generator | bis einschließlich 1.0.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/bvsatyaram/random_password_generator/blob/2855e8d7d8803dbb580ddd6cf13846394eb4530e/lib/random_password_generator.rb#L23
- https://github.com/bvsatyaram/random_password_generator/pull/1
- https://ruby-doc.org/core-3.1.2/Random.html
- https://stackoverflow.com/questions/42170239/security-of-rand-in-ruby-compared-to-other-methods/42170560
- https://github.com/advisories/GHSA-ggfx-h9xj-5v9c
- https://nvd.nist.gov/vuln/detail/CVE-2019-25061
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/random_password_generator/CVE-2019-25061.yml