All the parameters chosen are bad sources of randomness and are deterministic #1564
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-1901
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/hardhat/smart-contracts/RandomizerNXT.sol#L55-L59
Vulnerability details
Impact
All the parameters chosen to generate a random token hash in calculateTokenHash() are predictable and a bad source for randomness.
Proof of Concept
_mintIndex
,blockhash
,randomNumber()
,randomWord()
can all be predicted by a miner in advance and hence is not truly random.Tools Used
Manual inspection.
Recommended Mitigation Steps
Depend on VRF randomizer instead of
RandomizerNXT.sol
.Assessed type
Other
The text was updated successfully, but these errors were encountered: