Ethereum Credit Guild - Ward's results

A trust minimized pooled lending protocol.

General Information

Platform: Code4rena

Start Date: 11/12/2023

Pot Size: $90,500 USDC

Total HM: 29

Participants: 127

Period: 17 days

Judge: TrungOre

Total Solo HM: 4

Id: 310

League: ETH

Ethereum Credit Guild

Findings Distribution

Researcher Performance

Rank: 12/127

Findings: 1

Award: $1,477.20

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: EV_om

Also found by: Ward

Labels

bug
2 (Med Risk)
downgraded by judge
satisfactory
sufficient quality report
edited-by-warden
duplicate-1253

Awards

1477.1954 USDC - $1,477.20

External Links

Lines of code

https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/loan/AuctionHouse.sol#L118-L161

Vulnerability details

Impact

Since the anticipated deployment of Ethereum Credit Guild on the Ethereum mainnet and L2s like Arbitrum, we must consider the existence of the Sequencer and the risks it may pose. While using Dutch Auctions on L2s, we notice that the sequencer uptime isn't taken into account, but similar to what occurred on the Arbitrum network on December 15th, the sequencer outage is a possibility for the future.

In a case where there are ongoing auctions while the sequencer is offline, the auction prices will continue to decrease during the sequencer is offline. When the sequencer comes back online, users will have the opportunity to bid these auctions at prices significantly lower than the market rate. This may actually even be the favorable outcome, as missing out entirely on the auction is also a possibility. Referring to the example mentioned in AuctionHouse.sol#L33-L37, considering a 30-minute auction with a midPoint of 10 minutes and 50 seconds, if the sequencer remains inactive for just 11 minutes (passing the midPoint) it could lead to bad prices and if it stays offline for the entire 30 minutes, it would lead to forced debt forgiveness through forgive(). The size of bad debts can be anything and can have a dramatic impact considering the importance of their liquidation to the health of the protocol.

Proof of Concept

Read the scenario above and you can also take a look at this report where a similar case occurred.

Tools Used

Manual Review

Determine the maximum tolerable delay for the sequencer (11 minutes may be a good choice) and invalidate the auction if the sequencer was down for maximum tolerable delay or more during the auction period.

Assessed type

Context

#0 - c4-pre-sort

2024-01-01T12:11:41Z

0xSorryNotSorry marked the issue as insufficient quality report

#1 - c4-pre-sort

2024-01-03T17:25:38Z

0xSorryNotSorry marked the issue as remove high or low quality report

#2 - c4-pre-sort

2024-01-03T17:28:21Z

0xSorryNotSorry marked the issue as sufficient quality report

#3 - c4-pre-sort

2024-01-03T17:28:40Z

0xSorryNotSorry marked the issue as duplicate of #1253

#4 - c4-judge

2024-01-30T16:58:54Z

Trumpero marked the issue as satisfactory

#5 - c4-judge

2024-01-31T13:45:45Z

Trumpero changed the severity to 2 (Med Risk)

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