here, timestamp can be any value in past, if difference b/w timestamp and current timestamp is high then the price is stale and should be adjusted further (or should not be used)
Impact
if external price feed does not update due to whatever reason (sequencer issues, operation issues, congestion, etc.) then oracles uses stale price feed to settle position and trades.
hack3r-0m
medium
potentially using old price from pricefeed in oracle due to unchecked timestamp difference
Summary
potentially using old price from pricefeed in oracle due to unchecked timestamp difference
Vulnerability Detail
here, timestamp can be any value in past, if difference b/w timestamp and current timestamp is high then the price is stale and should be adjusted further (or should not be used)
Impact
if external price feed does not update due to whatever reason (sequencer issues, operation issues, congestion, etc.) then oracles uses stale price feed to settle position and trades.
Code Snippet
https://github.com/sherlock-audit/2023-02-gmx/blob/main/gmx-synthetics/contracts/oracle/Oracle.sol#L575
Tool used
Manual Review
Recommendation
Duplicate of #151