The newEscrow
function lacks input validation checks
The arbiter
address should be validated to ensure it is not the same as the buyer
or seller
address. The arbiter is expected to be an impartial, trusted actor who can resolve disputes between the buyer and seller. If the arbiter is also the buyer or seller, this impartiality is compromised.
If the arbiter
is also the buyer
or seller
, it could lead to disputes being resolved unfairly. This is contrary to the intended role of the arbiter as an impartial third party.
The lack of these input validations could lead to disputes being unfairly resolved
Manual analysis
To mitigate these issues, consider adding the following validation checks in the newEscrow
function:
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.