Description:
LiquidationPool relies on Chainlink's price feed to assess the value of assets distributed to stakers. However, these prices lack sufficient validation. There is no freshness check on the timestamp of the prices, allowing the usage of outdated prices if OCR fails to provide an update in time.
Impact:
Outdated prices result in stakers receiving incorrect valuations for liquidated assets. This leads to stakers receiving more or less than they should, impacting the overall network.
Proof of Concept:
The timestamp field is disregarded, leaving no means to verify whether the price is recent enough:
Tools Used:
Manual review
Recommended Mitigation Steps:
Introduce a configuration parameter for the staleness threshold in seconds and ensure that the fetched price falls within that time range.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.