The abortBidTaker
function in the PreMarkets
contract lacks a critical check to ensure that the marketplace is online before proceeding with the operation. This oversight could lead to potential issues if the market place if offline
The abortBidTaker
function does not verify if the marketplace is online before allowing the bid taker to be aborted as seen in the following code;
If the marketplace is offline, aborting a bid taker could lead to inconsistent states or failed transactions. Also lack of marketplace status verification could be exploited by malicious actors to perform unauthorized or unintended operations.
Manual Review
Add a check to verify that the marketplace is online before proceeding with the abort operation. This can be done by retrieving the marketplace status from the system configuration and ensuring it is online.
Informational, during emergencies, even if abortions are allowed, withdrawal can be paused and collateral cannot be pulled anyways (`whenNotPaused` modifier within `withdraw()`), so there is no impact here, given funds outflow can be paused.
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.