PreMarkets.listOffer()
doesn't check if _amount
to be larger than stockInfo.amount
.
This can cause the protocol insolvency in the Turbo
mode.
The relavance code of listOffer()
is following.
As shown above, listOffer()
doesn't check if _amount
to be larger than stockInfo.amount
on L300
.
In addition, listOffer()
doesn't deposit collateral to the protocol in Turbo
mode.
Therefore, if attacker set _amount
large than stockInfo.amount
, the protocol will be insolvency during settling period.
This issue can cause the protocol insolvency during settling period in the Turbo
mode.
Manual Review
It is recommended to add the additional check on _amount
parameter.
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.