No check for state.endTime on Auction::buy as a result user may lose his position to win
On Auction::buy we can see it is not checking if the auction is ended or not.
So another user can call buy and put his bid even when the auction is not ended
There is a function Auction::checkAuctionEnded
So let's say the user Bob put a higher bid, and after some time see that the Auction is ended through Auction::checkAuctionEnded
So Bob did not put any higher bid than the previous one because he saw that the Auction was ended.
So he is willing to win the Bid.
But another user Alice come and put a higher bid than Bob. But Alice put that bid when the Auction is actually ended. Because ultimately we can see there is no check on buyfunction for if the auction is ended or not.
So now Aliceis gonna win the bid as she put higher bid than Bob.
But here Bob is losing unfairly as he thought the auction had ended, so he didn't put in any further bids.
Alice putting her bid even when the auction is ended.
Manual
Put a check on whether the auction is ended or not through state.endTime
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.