Wild Credit contest - a_delamo's results

Decentralized lending protocol with isolated lending pairs.

General Information

Platform: Code4rena

Start Date: 08/07/2021

Pot Size: $50,000 USDC

Total HM: 7

Participants: 13

Period: 7 days

Judge: ghoulsol

Total Solo HM: 5

Id: 18

League: ETH

Wild Credit

Findings Distribution

Researcher Performance

Rank: 10/13

Findings: 2

Award: $816.97

🌟 Selected for report: 4

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: a_delamo

Also found by: 0xRajeev, cmichel, greiart, shw

Labels

bug
2 (Med Risk)
sponsor confirmed

Awards

360.7268 USDC - $360.73

External Links

Handle

a_delamo

Vulnerability details

Impact

UniswapV3Oracle.sol is calling latestAnswer to get the last WETH price. This method will return the last value, but you won't be able to check if the data is fresh. On the other hand, calling the method latestRoundData allow you to run some extra validations

( roundId, rawPrice, , updateTime, answeredInRound ) = AggregatorV3Interface(XXXXX).latestRoundData(); require(rawPrice > 0, "Chainlink price <= 0"); require(updateTime != 0, "Incomplete round"); require(answeredInRound >= roundId, "Stale price");

More information: https://docs.chain.link/docs/faq/#how-can-i-check-if-the-answer-to-a-round-is-being-carried-over-from-a-previous-round

#0 - ghoul-sol

2021-08-01T20:53:39Z

Since slate prices could have quite serious consequences, I'll bump it to medium 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