The `emergencyWithdrawERC20` function restricts withdrawal of core tokens by hardcoding checks for `iWETH, iWBTC, iWSOL, and iUSDC,` but it doesn’t check whether the token is listed in allowedSellToken.
Impact:
If a new token is added to `allowedSellToken` via `setAllowedSellToken()`, the owner could withdraw user-deposited tokens via the emergency function—even if actively being used in orders.
Only checks hardcoded tokens
Also check allowedSellToken`[_tokenAddress] == true` to block withdrawals of any currently accepted sell token:
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.