40,000 USDC
View results
Submission Details
Severity: high

Potential overflow

Summary

There is a potential overflow in resolveDispute function

Vulnerability Details

Though, the potential for overflow was commented (Reverts on overflow), but there isn't protection against overflow in the resolveDisute function.

Impact

If "totalFee" wraps to 0, resolveDispute function will revert. Neither the buyer, nor the seller, nor the arbiter will be paid in case of dispute.

Tools Used

Manual review

Recommendations

Use Openzeppelin's SafeMath to handle overflow.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.