One user can use multiple account to bet on multiple teams.
If one of his accounts being winner, he can transfer his share tokens from losing accounts to the winning account to withdraw more than the expected asset tokens.
Expoit in the balanceOf to retrieve the shares balance of the winner at the time he calling withdraw function
Likelihood: High
When winners used multiple accounts for betting and one of those accounts become the winner
Impact:
Malicious users can withdraw more than the expected reward he eligible to claim
Add this test case to britVault.t.sol
Assume that user1 and user3 accounts belong to one malicious user; user4 is a normal user
Use userSharesToCountry state instead of calling balanceOf to fetch the shares balance of the user in withdraw function
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.