Malicious user can claim all locked ETH of user's through claimPrize()
As no CEI effect is followed during claimPrize() and state gets updated after the ETH gets transferred which leads to malicious user can do reentrancy attack and steal user's fund.
smbv-1923
High
Reentrancy Attack while calling
claimPrize()
Summary
Reentrancy Attack while calling
claimPrize()
Vulnerability Detail
claimPrize()
claimPrize()
and state gets updated after the ETH gets transferred which leads to malicious user can do reentrancy attack and steal user's fund.Impact
Code Snippet
https://github.com/sherlock-audit/2024-08-winnables-raffles/blob/main/public-contracts/contracts/WinnablesPrizeManager.sol#L105
Tool used
Manual Review