in the buyeragent.sol the contract allows the buyer to withdraw tokens from the contract if the current phase is withdraw the buyer can withdraw tokens from the contract however a vulnerability allows the buyer to withdraw any amount of tokens with no check in place
as we can see if the current phase is withdraw the code allows buyer to withdraw any amount of tokens with no check on the amount this is problematic as the buyer can withdraw any amount of tokens and completely drain the contract
loss of funds for contract
none
Only allow the buyer to withdraw tokens they are entitled to, and implement checks to ensure the buyer does not withdraw more than that
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.