Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of cryptographically insecure PRNG #1

Open
SecurityDat opened this issue Aug 21, 2023 · 0 comments
Open

Use of cryptographically insecure PRNG #1

SecurityDat opened this issue Aug 21, 2023 · 0 comments

Comments

@SecurityDat
Copy link

Hello,I found that the nonce is generated by "ethash.rand.Int63()". This random number generation is actually pseudo-random. Using the nonce as a seed in the "mine" function may result in insufficient randomness and may be cracked by traversal.

Location: https://github.com/bitindi/blockchain-core/blob/main/consensus/ethash/sealer.go#L100

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

No branches or pull requests

1 participant