Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last-Moment Bid Cancellation Possibility #616

Closed
c4-submissions opened this issue Nov 8, 2023 · 7 comments
Closed

Last-Moment Bid Cancellation Possibility #616

c4-submissions opened this issue Nov 8, 2023 · 7 comments
Labels
3 (High Risk) Assets can be stolen/lost/compromised directly bug Something isn't working duplicate-1323 edited-by-warden unsatisfactory does not satisfy C4 submission criteria; not eligible for awards

Comments

@c4-submissions
Copy link
Contributor

c4-submissions commented Nov 8, 2023

Lines of code

https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/smart-contracts/AuctionDemo.sol#L124-L130

Vulnerability details

Impact

The current implementation of the cancelBid function in auctionDemo.sol permits bidders to withdraw their bids up until the exact end of the auction as determined by minter.getAuctionEndTime(_tokenid). This creates an opportunity for a bidder to place an artificially high 'blocking bid' to deter other participants and then withdraw that bid in the last possible block before the auction ends, potentially placing a lower bid immediately after and winning the auction due to the lack of time for other participants to respond.

This behavior compromises the fairness of the auction by allowing a participant to manipulate the bidding process without intending to win with the high bid.

The existence of a high but insincere bid may deter legitimate interest in the auction, potentially reducing the final sale price for the auctioneer.

Recommended Mitigation Steps

Implement a period (e.g., 5 average block time) during which bids cannot be canceled. This lock-in period will prevent last-minute bid cancellations and give participants a clearer view of genuine interest in the auction item.

Assessed type

Other

@c4-submissions c4-submissions added 3 (High Risk) Assets can be stolen/lost/compromised directly bug Something isn't working labels Nov 8, 2023
c4-submissions added a commit that referenced this issue Nov 8, 2023
@c4-pre-sort
Copy link

141345 marked the issue as duplicate of #962

@c4-judge
Copy link

c4-judge commented Dec 2, 2023

alex-ppg marked the issue as not a duplicate

@c4-judge
Copy link

c4-judge commented Dec 2, 2023

alex-ppg marked the issue as duplicate of #1784

@c4-judge
Copy link

c4-judge commented Dec 7, 2023

alex-ppg marked the issue as duplicate of #1323

@c4-judge
Copy link

c4-judge commented Dec 8, 2023

alex-ppg marked the issue as unsatisfactory:
Insufficient quality

@c4-judge c4-judge added unsatisfactory does not satisfy C4 submission criteria; not eligible for awards satisfactory satisfies C4 submission criteria; eligible for awards and removed unsatisfactory does not satisfy C4 submission criteria; not eligible for awards labels Dec 8, 2023
@c4-judge
Copy link

c4-judge commented Dec 8, 2023

alex-ppg marked the issue as satisfactory

@c4-judge c4-judge added unsatisfactory does not satisfy C4 submission criteria; not eligible for awards and removed satisfactory satisfies C4 submission criteria; eligible for awards labels Dec 8, 2023
@c4-judge
Copy link

c4-judge commented Dec 8, 2023

alex-ppg marked the issue as unsatisfactory:
Insufficient quality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 (High Risk) Assets can be stolen/lost/compromised directly bug Something isn't working duplicate-1323 edited-by-warden unsatisfactory does not satisfy C4 submission criteria; not eligible for awards
Projects
None yet
Development

No branches or pull requests

4 participants