This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
minhtrng - Lack of staleness check in Kept #166
Labels
Non-Reward
This issue will not receive a payout
minhtrng
medium
Lack of staleness check in Kept
Summary
Lack of staleness check in Kept.
Vulnerability Detail
There is no staleness check in
Kept._etherprice
:common issue, example submission for reference
Impact
wrong ether price used when paying keepers
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/root/contracts/attribute/Kept.sol#L62-L63
Tool used
Manual Review
Recommendation
Read the updatedAt parameter from the calls to latestRoundData() and verify that it isn't older than a threshold.
Duplicate of #159
The text was updated successfully, but these errors were encountered: