the withdraw
function update userTokenBalanceMap
allow user to stealing all the ETH from the contract
in withdraw
function there is no validation performed to update userTokenBalanceMap
and it can be called by anyone how had claimAbleAmount > 0
user can set token is native token and stealing all the ETH from the contract.
due to no update to userTokenBalanceMap
putting the contract's funds at risk of being stolen.
Manual Review
update userTokenBalanceMap
Valid critical severity finding, the lack of clearance of the `userTokenBalanceMap` mapping allows complete draining of the CapitalPool contract. Note: This would require the approval issues highlighted in other issues to be fixed first (i.e. wrong approval address within `_transfer` and lack of approvals within `_safe_transfer_from` during ERC20 withdrawals)
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.