53015 sc low raffle does not invalidate used tickets breaking fairness
Description
Brief / Intro
Vulnerability Details
uint256 winningTicketIndex = (rng[0] % totalTickets[prizeId]) + 1;uint256 lo = 0;
uint256 hi = ranges.length - 1;
while (lo < hi) {
uint256 mid = (lo + hi) >> 1;
if (winningTicketIndex <= ranges[mid].cumulativeEnd) {
hi = mid;
} else {
lo = mid + 1;
}
}
winnerAddress = ranges[lo].user;Impact Details
References
Proof of Concept
Previous53016 sc high arctokenpurchase doesn t allow rwa token owners to recover accrued yield from stored arctokens waiting for sale Next53011 sc critical uncleaned partial approval consumption in dex aggregator integration leads to permanent dos
Was this helpful?