Lack of Arbitrum Sequencer Uptime Checks in CollateralTracker Contract #546
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
grade-a
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2024-04-panoptic/blob/833312ebd600665b577fbd9c03ffa0daf250ed24/contracts/CollateralTracker.sol#L995
https://github.com/code-423n4/2024-04-panoptic/blob/833312ebd600665b577fbd9c03ffa0daf250ed24/contracts/CollateralTracker.sol#L1043
Vulnerability details
Impact
The CollateralTracker smart contract lacks mechanisms to check the uptime of the Arbitrum sequencer. This oversight can lead to the processing of transactions based on outdated or incorrect market data during periods of sequencer downtime, potentially causing financial inaccuracies and security risks.
Functions like takeCommissionAddData and exercise, which rely heavily on current market data for calculating fees or exercising options, may operate on outdated information, resulting in improper fee deductions or option executions.
Proof of Concept
Loc
https://github.com/code-423n4/2024-04-panoptic/blob/833312ebd600665b577fbd9c03ffa0daf250ed24/contracts/CollateralTracker.sol#L995
https://github.com/code-423n4/2024-04-panoptic/blob/833312ebd600665b577fbd9c03ffa0daf250ed24/contracts/CollateralTracker.sol#L1043
Tools Used
Manual
Recommended Mitigation Steps
Implement checks using tools such as Chainlink's Sequencer Uptime Feeds to determine the operational status of the Arbitrum sequencer. Pause or modify the execution of sensitive transactions during detected downtimes.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: