Cyfrin / 2023-07-escrow

17 stars 12 forks source link

If one of the actors gets blacklisted the whole functionality will be broken and funds will be stuck in the contract #190

Open codehawks-bot opened 1 year ago

codehawks-bot commented 1 year ago

If one of the actors gets blacklisted the whole functionality will be broken and funds will be stuck in the contract

Severity

High Risk

Relevant GitHub Links

https://github.com/Cyfrin/2023-07-escrow/blob/65a60eb0773803fa0be4ba72defaec7d8567bccc/src/Escrow.sol#L119-L128

Summary

If the token used in the Escrow contract is a ERC20 with blacklist capabilities, it can broke the whole functionality of the contract in case where the one of the actors will get blacklisted, which will get the funds be stuck in the protocol.

Vulnerability Details

There are 3 possible scenarios for this case:

PatrickAlphaC commented 1 year ago

Great write up and recommendation