After a withdrawal, bidders' balances are not reset, allowing them to withdraw the same amount multiple times.
The withdraw
function does not reset bid_values[caller]
to zero after a successful withdrawal.
Potential for Fraud: Bidders can repeatedly withdraw funds.
Contract Insolvency Risk: The contract may become insolvent.
Reset Bidder Balance: After transferring tokens back to the bidder, reset their balance:
The `withdraw` function doesn't reset the `bid_values` to 0 after the withdraw. That means the bidder can call multiple time the `withdraw` function and receive the whole balance of the protocol.
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.