amendSellOrder Function Before Buyer Transaction confirmationThe OrderBook::amendSellOrder function allows sellers to update their price ,amount and deadline.
Since Ethereum mempool is public, A malicoius seller can monitor pending buyorder transaction and frontrun
them by modifying (increasing price and reducing token),causing buyers to receive less token then expected
and paying more price.
Impact:
1.Buyer tricked into accepeting ammended orders with worse terms
2.loss of buyers trust in the protcol due to unexpected situations
3.If price or amount changes before mining, even trusted frontend UIs become unreliable.
1.Add order hash commitment to ensure no changes were made
2.Buyers compute the hash off-chain before sending the transaction.
A malicious seller can front-run a buy order for their order, and decrease the amount of assets to be sold. If the price is unchanged, the buy transaction fulfills, but the buyer gets lesser amount than expected.
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.