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
Rank: 48/88
Findings: 2
Award: $46.82
🌟 Selected for report: 0
🚀 Solo Findings: 0
38.2759 USDC - $38.28
In finalize
function clearingQuote
may be set to type(uint256).max
Then checks atState()
will fail in refund()
and withdraw()
functions and it will impossible to return money to bidders
reveal()
function for finished auction with no finalizeData
finalize()
with ``clearingQuote = type(uint256).max```atState(idToAuction[auctionId], States.Finalized)
in refund()
and withdraw()
will failvs code
check clearingQuote
value
#0 - trust1995
2022-11-09T00:43:03Z
Low quality, not descriptive enough to be satisfactory.
#1 - c4-judge
2022-11-24T13:55:20Z
0xean marked the issue as duplicate of #252
#2 - c4-judge
2022-11-24T13:55:25Z
0xean marked the issue as partial-25
🌟 Selected for report: neko_nyaa
Also found by: 0x52, 0xSmartContract, 0xc0ffEE, Josiah, KingNFT, Lambda, R2, RaymondFam, Ruhum, TomJ, Trust, TwelveSec, __141345__, c7e7eff, cccz, cryptostellar5, fs0c, hansfriese, horsefacts, ladboy233, minhtrng, pashov, rvierdiiev, sashik_eth, tonisives, wagmi
8.5414 USDC - $8.54
https://github.com/code-423n4/2022-11-size/blob/706a77e585d0852eae6ba0dca73dc73eb37f8fb6/src/SizeSealed.sol#L351 https://github.com/code-423n4/2022-11-size/blob/706a77e585d0852eae6ba0dca73dc73eb37f8fb6/src/SizeSealed.sol#L439
When you are sending quote tokens back to bidder (in cancelBid()
and refund()
), you are sending exact quoteAmount
But if it's a token with fee, it will lead to service DoS and user funds freezing
vs code
Check balances before and after, as you are doing with base token
#0 - c4-judge
2022-11-09T15:47:03Z
0xean marked the issue as duplicate
#1 - c4-judge
2022-12-06T00:23:15Z
0xean marked the issue as satisfactory
#2 - c4-judge
2022-12-06T00:29:53Z
0xean changed the severity to 2 (Med Risk)