Closed code423n4 closed 2 years ago
Order's should only be able to be cancelled before they are filled. Maker should not be able to cancel an order after it's filled. Thus exercising and withdrawing should continue to be processed once an order is filled even if it's cancelled.
Duplicate: Order can be cancelled even if order was already filled: https://github.com/code-423n4/2022-06-putty-findings/issues/396
Uhhh the warden is asserting the other way round (I think, based on the description). The explanation given by @kirk-baird suffices to explain why this issue should be invalid.
Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L389-L520
Vulnerability details
Impact
A cancelled order can be exercised and withdrawn
Proof of Concept
function exercise(Order memory order, uint256[] calldata floorAssetTokenIds) public payable { /
~ CHECKS ~/Tools Used
VS code
Recommended Mitigation Steps
Validation check for cancelled order can be included.