Description (CNA)
Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts. The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function. The rand function is unsuitable for cryptographic use. These salts are used for password hashing.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| JDEGUEST / Apache::API::Password | affected 0 through 0.5.2 |
CWE
CWE-338
References
- https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes
- https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod
- https://security.metacpan.org/docs/guides/random-data-for-security.html
- https://metacpan.org/pod/Crypt::URandom
ADP enrichment
No English description supplied.
No English description supplied.
No references supplied.