SIZE contest - codexploder's results

An on-chain sealed bid auction protocol.

General Information

Platform: Code4rena

Start Date: 04/11/2022

Pot Size: $42,500 USDC

Total HM: 9

Participants: 88

Period: 4 days

Judge: 0xean

Total Solo HM: 2

Id: 180

League: ETH

SIZE

Findings Distribution

Researcher Performance

Rank: 84/88

Findings: 1

Award: $5.60

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

5.604 USDC - $5.60

Labels

bug
2 (Med Risk)
satisfactory
duplicate-237

External Links

Lines of code

https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L157-L159

Vulnerability details

Impact

A Bidder can DOS an Auction from receiving further bids by depositing and withdrawing same bid 1000 times using cancelBid function. This attack is feasible when Auction duration is long (meaning large number of bid expected) and a.params.minimumBidQuote is low

Proof of Concept

  1. Auction A is started with duration as 4 weeks and minimumBidQuote=1 USDC
  2. User A wants to DOS this Auction so simply does below:

a. Bids on Auction A with minimumBidQuote b. Cancel this bid using cancelBid

  1. Repeat step 1 & 2 thousand time. At the end a.bids.length becomes 1000 and would stop receiving further bids

  2. This is incorrect as same user made all 1000 entries and also deleted them

Tools Used

Manual

Once bidder is removed then remove the bidder from the bid list i.e. a.bids[bidIndex]

#0 - c4-judge

2022-11-09T15:40:00Z

0xean marked the issue as duplicate

#1 - c4-judge

2022-12-06T00:22:58Z

0xean marked the issue as satisfactory

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter