RRWO Data::Entropy
Data::Entropy versions before 0.010 for Perl read remote entropy sources over plain HTTP
Data::Entropy versions before 0.010 for Perl read remote entropy sources over plain HTTP. The Data::Entropy::RawSource::RandomOrg and Data::Entropy::RawSource::RandomnumbersInfo remote sources are accessed over plain HTTP. The Data::Entropy::RawSource::RandomOrg integrity check trivially matches any non-empty byte string. Any on-path attacker, such as open WiFi, a compromised ISP, captive portal, or a hostile egress proxy substitutes the response and thereby chooses the bytes returned by rand_bits and rand_int for every application that selected one of these sources via with_entropy_source. The _checkbuf method response is equally attacker-controlled, so the retry/sleep behaviour is steerable too.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.010
Fixed in 0.010
Mitigation
Upgrade Data::Entropy to 0.010 or later.
Workaround
Deployments should not use the RandomOrg or RandomnumbersInfo sources, as these are flawed. They have been removed from Data::Entropy 0.010. (There was a change to use HTTPS to connect to these sources in version 0.009 that did not work.) Note that Data::Entropy has been deprecated since version 0.008. Users are advised to migrate to alternative solutions that use system sources of random data, such as Crypt::SysRandom, Crypt::URandom or Crypt::PRNG.
References
- Vendor advisory github.com/robrwo/Data-Entropy/security/adviso…
- Release notes metacpan.org/release/RRWO/Data-Entropy-0.010/cha…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.