julz0815 / test-action

0 stars 1 forks source link

Insufficient Entropy ('Cryptographic Issues') [VID:51] #753

Open github-actions[bot] opened 7 months ago

github-actions[bot] commented 7 months ago

https://github.com/julz0815/test-action/blob/2e095c0af94cd5465e33652501abb4ddbd188846/src/main/java/com/veracode/verademo/controller/ResetController.java#L123-L133

Filename: ResetController.java

Line: 128

CWE: 331 (Insufficient Entropy ('Cryptographic Issues'))

Standard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand(). If this random number is used where security is a concern, such as generating a session key or session identifier, use a trusted cryptographic random number generator instead. These can be found on the Windows platform in the CryptoAPI or in an open source library such as OpenSSL. In Java, use the SecureRandom object to ensure sufficient entropy. References: CWE/nDon't know how to fix this? Don't know why this was reported?
Get Assistance from Veracode