Closed c4-bot-2 closed 8 months ago
bytes032 marked the issue as insufficient quality report
The Warden specifies misbehavior that may arise from misconfiguring the contracts during their deployment; such findings cannot constitute HM vulnerabilities per the relevant SC verdict.
alex-ppg marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2024-01-opus/blob/4720e9481a4fb20f4ab4140f9cc391a23ede3817/src/external/pragma.cairo#L123-L124
Vulnerability details
Impact
Prices used may be outdated or inaccurate
Proof of Concept
In the set_price_validity_thresholds function, new thresholds (new_thresholds) are established, where freshness and sources must fall within the range defined by hardcoded constants.
However, during initialization, there are no constraints imposed on these values, which may result in the initialized values not adhering to the predefined constant ranges. Consequently, this could lead to the retrieval of prices that are potentially outdated or inaccurate. Additionally, within the Seer mod, there is a similar issue with the setting of update_frequency.
Tools Used
vscode
Recommended Mitigation Steps
It is recommended to also check in the constructor function whether
freshness
andsources
,update_frequency
fall within the range of the hardcoded constants.Assessed type
Oracle