code-423n4 / 2021-04-meebits-findings

0 stars 0 forks source link

Can cancel the same offer several times #76

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

paulius.eth

Vulnerability details

Impact

function cancelOffer does not check if the offer is not already canceled, thus it is possible to invoke it again and again. It has no impact on security, just emits the event but I think it doesn't make sense to allow canceling the same offer twice.

Recommended Mitigation Steps

Solution: require that cancelledOffers[hash] is false.