Hunt prep
Before you test Putty
What 20 disclosed reports say about Putty: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 13 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Use of Solidity version 0.8.13 which has two known issues applicable to PuttyV2
The project was fixed by upgrading the Solidity compiler to version 0.8.15, which contains the fixes for both issues.
-
Zero strike call options will avoid paying system fee
The fee calculation was changed to be based on the option premium instead of the strike price, and the fix was implemented in a pull request.
-
Order cancellation is prone to frontrunning and is dependent on a centralized database
The project added a setMinimumValidNonce function and a check on order filling, as confirmed in the mitigation review.
-
Order duration can be set to 0 by Malicious maker
The issue was fixed by requiring a minimal order duration of 15 minutes on filling.
-
Options with a small strike price will round down to 0 and can prevent assets to be withdrawn
The issue was fixed by adding a check to skip the token transfer when the fee amount is zero.
-
fee can change without the consent of users
The fee should be stored in the order and checked when the order is filled, so it is fixed for that order; the project says a fix was merged.
-
Putty position tokens may be minted to non ERC721 receivers
The recommendation is to implement a safe mint check (like Solmate's _safeMint) or document the design decision and associated risk.
-
Overlap Between ERC721.transferFrom() and ERC20.transferFrom() Allows order.erc20Assets or order.baseAsset To Be ERC721 Rather Than ERC20
The contract should whitelist approved ERC721 and ERC20 token contracts separately and ensure each token is in the correct category.
-
An attacker can create a short put option order on an NFT that does not support ERC721 (like cryptopunk), and the user can fulfill the order, but cannot exercise the option
The order should restrict which NFTs are accepted, for example with a whitelist, or the contract should support exercising on non-ERC721 tokens.
-
fillOrder() and exercise() may lock Ether sent to the contract, forever
The issue was fixed by adding a check that requires msg.value to be zero on the non-Ether code paths.
-
Put option sellers can prevent exercise by specifying zero amounts, or non-existant tokens
The issue was fixed by skipping ERC20 transfers when the amount is zero, and the fake token part was noted as similar to other findings.
-
Unbounded loops may cause exercise() s and withdraw() s to fail
The project addressed the issue by limiting the number of assets to 30 at the frontend and database level, rather than adding a hardcoded check in the contract.
-
Malicious Token Contracts May Lead To Locking Orders
The project acknowledged the issue but chose not to fix it at the contract level, instead adding UI warnings and marking unverified tokens; a contract-level fix would be to whitelist approved token contracts.
-
Zero strike call options can be systemically used to steal premium from the taker
The fix conditions the call exercise logic on the strike being greater than zero, so zero-strike calls are not attempted.
-
Create a short call order with non empty floor makes the option impossible to exercise and withdraw
The issue was fixed by prohibiting non-empty order.floorTokens for short calls.