The protocol has an owner with privileged rights to perform admin tasks that can affect users. Especially when setting market params and platform fee
Market Parameters and platformFee can be set in the following functions by the owner:
as it can be seen platformFee
can be set to 100 or close 100. If it is set 100 then buyerFee
will be 0, or the more platformFee gets close to 100 , the more buyerFee will be close to low(potentially a worthless value). Because when there is a listing or relisting , buyerFee
is calculated based on platformFee
in the following function:
Even if the owner is trusted party, the owner can change the fee without any validation or logging. This may lead to unexpected results and users can be affected substantially if it is very close to 100
Manual Review
Set reasonable min and max constant values for platformFee
Log out the fee setting in the mentioned critical functions above
Clearly specify the owner privileges in the docs
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.