Description
In TokenDivider::buyOrder
the owner gets send an amount of fee
instead of sellerFee
. As fee
is only used to calculate the sellerFee
variable, and not intended to be transferred.
Impact
If a user calling this function sends a msg.value
greater than order.price + fee
it will be losing a greater amount of ETH than expected. If the msg.value
is less, then the transaction will revert as there is not enough ETH to transfer.
Proof of Concepts
Manual analysis
Recommended mitigation
Add the following changes to the contract:
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.