Hunt prep
Before you test Cally contest
What 13 disclosed reports say about Cally contest: 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 | 11 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
[WP-H0] Fake balances can be created for not-yet-existing ERC20 tokens, which allows attackers to set traps to steal funds from future users
The issue was fixed by switching to OpenZeppelin's SafeERC20, which checks that the token address contains code.
Disclosed
-
no-revert-on-transfer ERC20 tokens can be drained
The fix was to use safeTransferFrom for ERC721 token transfers, which would revert if the token does not support that function.
Disclosed
-
It shouldn’t be possible to create a vault with Cally’ own token
The fix was to add a check at the start of createVault that the token address is not the Cally contract.
Disclosed
-
Vault is Not Compatible with Fee Tokens and Vaults with Such Tokens Could Be Exploited
The recommendation is to disallow fee tokens by requiring that the increase in the contract's token balance equals the amount sent by the caller.
Disclosed
-
Vaults steal rebasing tokens’ rewards
The contract should track total deposited amounts and allow vault creators to withdraw excess on a pro-rata basis.
Disclosed
-
User’s may accidentally overpay in buyOption() and the excess will be paid to the vault creator
The check should require the sent amount to equal the premium exactly; the report says this was fixed.
Disclosed
-
Expiration calculation overflows if call option duration ≥ 195 days
The multiplication should be cast to uint32 to prevent overflow.
Disclosed
-
Owner can modify the feeRate on existing vaults and steal the strike value on exercise
The fee rate should be fixed per vault during vault creation.
Disclosed
-
Owner can set the feeRate to be greater than 100% and cause all future calls to exercise to revert
The issue was fixed by adding reasonable fee rate bounds checks in the setFee() function.
Disclosed
-
Lack of 0 amount check allows malicious user to create infinite vaults
The issue was fixed by adding a check that the amount is greater than zero, applied only to ERC20 tokens because ERC721 token IDs can legitimately be zero.
Disclosed
-
Use safeTransferFrom instead of transferFrom for ERC721 transfers
The contract should call safeTransferFrom instead of transferFrom and inherit ERC721TokenReceiver; the finding was confirmed and resolved.
Disclosed