Skip to content

Code4rena

Cally contest

Every publicly disclosed report for Cally contest and what kind of bugs they were.

disclosed reports
13
most reported class
Business logic
bug classes found
2
first disclosure
2022
Find Cally contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Cally contest chose to make public.

Business logic

[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 vault creation function used a token transfer library that does not verify the token address contains code, so a vault could be created for a non-existent token with a fake balance. An attacker could set traps for future tokens deployed at the same address on the same network, later withdrawing real tokens deposited by other users.

Cally contest

High
Business logic

no-revert-on-transfer ERC20 tokens can be drained

The createVault function in a smart contract did not check the return value of an ERC20 transfer, allowing a vault to be created without depositing tokens. An attacker could then buy and exercise options on that empty vault, receiving the buyer's payment while the buyer gets no tokens.

Cally contest

High
Business logic

It shouldn’t be possible to create a vault with Cally’ own token

The Cally contract allowed creating a vault with itself as the token, so the vault's ownership was immediately transferred to the contract. This made the vault unusable and locked any ETH deposited by users who bought or exercised options.

Cally contest

Medium
Business logic

Vault is Not Compatible with Fee Tokens and Vaults with Such Tokens Could Be Exploited

The Cally contract records the full amount of an ERC20 token transferred into a vault, but fee-on-transfer tokens deliver less than that amount, so the contract's balance is lower than the sum of recorded vault amounts. An attacker can create a vault with the same fee token and withdraw the recorded amount, making the contract pay the transfer fee and potentially causing other users' withdrawals to fail.

Cally contest

Medium
Business logic

Vaults steal rebasing tokens’ rewards

The vault contract records the initial deposit amount and later transfers only that fixed amount, ignoring any growth from rebasing tokens. As a result, rewards that accrue to the vault cannot be withdrawn by either the option seller or the owner and remain locked forever.

Cally contest

Medium
Smart contracts

Expiration calculation overflows if call option duration ≥ 195 days

A vault's duration in days is stored as an 8-bit integer, and when multiplied by the number of seconds in a day, the result overflows if the duration is 195 days or more. This causes the option purchase to revert, making the vault unusable and locking the creator's funds until they withdraw.

Cally contest

Medium
Business logic

Inefficiency in the Dutch Auction due to lower duration

The Dutch auction price calculation reaches the reserve strike before the full 24-hour duration, leaving the price constant for the remaining time. This reduces the effective auction period and can cause options to be filled at unfavourable prices for the vault creator.

Cally contest

High
Smart contracts

Use safeTransferFrom instead of transferFrom for ERC721 transfers

The Cally contract used transferFrom instead of safeTransferFrom for ERC721 transfers, which bypasses the onERC721Received callback. This could cause NFTs with receiver logic to be stuck or mishandled when used as call options.

Cally contest

Medium