Skip to content

[Precogs Alert] Improper Random Number Generation detected (CWE-330, Risk: High)#1

Open
rajnishprecogs wants to merge 1 commit intomainfrom
Precogs-fix-7tpyfna8
Open

[Precogs Alert] Improper Random Number Generation detected (CWE-330, Risk: High)#1
rajnishprecogs wants to merge 1 commit intomainfrom
Precogs-fix-7tpyfna8

Conversation

@rajnishprecogs
Copy link
Owner

Vulnerability Details

  • File Path: src/state_example/key_management/key_management_1.c
  • Vulnerability Type: Improper Random Number Generation
  • Risk Level: High

Explanation:
The function relies on HSM_get_random_byte() to generate random bytes, but the implementation of HSM_get_random_byte() is not provided. If this function does not use a cryptographically secure random number generator, the randomness of the generated bytes may be insufficient for security-critical applications.

Please review and address the issue accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant