Skip to content

Code4rena

Rolla contest

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

disclosed reports
14
most reported class
Smart contracts
bug classes found
4
first disclosure
2022
Find Rolla contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

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

Business logic

QTokens with the same symbol will lead to mistakes

The QToken symbol only includes the last two digits of the expiry year, so tokens with different expiry years can share the same symbol. An attacker could exploit this ambiguity to trick users into buying the wrong option on a DEX.

Rolla contest

Medium
Smart contracts

OperateProxy.callFunction() should check if the callee is a contract

The OperateProxy contract's callFunction() does not verify that the callee address is a contract, so a call to a non-contract address returns success. This could break business logic that assumes a successful call means a real contract interaction, potentially causing fund loss.

Rolla contest

Medium
Smart contracts

No use of upgradeable SafeERC20 contract in Controller.sol

The smart contract Controller.sol uses a non-upgradeable version of OpenZeppelin's SafeERC20 library while otherwise being designed for upgradeability. This inconsistency could cause storage layout issues or other problems when the contract is upgraded.

Rolla contest

Medium
Smart contracts

Wrong implementation of EIP712MetaTransaction

The EIP712MetaTransaction utility contract used the initializer modifier on its initializer function, which is intended for concrete contracts, causing a revert when a derived contract's initializer calls it. This prevents proper initialisation of the meta-transaction functionality in inherited contracts.

Rolla contest

High
Business logic

Incorrect strike price displayed in name/symbol of qToken

A string-slicing helper in the qToken name/symbol code used a fixed offset instead of the loop index, so the decimal part of the strike price was rendered as a repeated character. This made the displayed name and symbol of options with fractional strike prices show a wrong value, which could confuse users about the actual strike price.

Rolla contest

High
Smart contracts

Mint spread collateral-less and conjuring collateral claims out of thin air with implicit arithmetic rounding and flawed int to uint conversion

The smart contract's fixed-point math functions implicitly round down during multiplication and division, and the integer-to-unsigned conversion function behaves like an absolute value. An attacker could mint a spread without paying collateral and later claim collateral that was never deposited, potentially stealing tokens from the contract.

Rolla contest

High
Smart contracts

Low-level transfer via call() can fail silently

The TimelockController's _call function uses a low-level call and only checks the success flag, which returns true even if the target account does not exist. An attacker could cause a transfer to a non-existent address to appear successful while no funds are actually sent.

Rolla contest

Medium
Access control

Arbitrary code can be run with Controller as msg.sender

The Controller contract allowed a caller to supply an arbitrary contract address as a qToken for a QTokenPermit action, and then called permit() on that address with the Controller as msg.sender. An attacker could deploy a malicious contract implementing the expected interface and have the asset-bearing Controller call it, potentially enabling arbitrary code execution in the Controller's context.

Rolla contest

Medium
Business logic

Spreads can be minted with a deactivated oracle

The oracle deactivation check was missing during option spread minting, so a user could still mint new options within spreads that relied on a deactivated oracle. This allowed bypassing the intended restriction that deactivated oracles should only permit closing positions.

Rolla contest

Medium