Hunt prep
Before you test Rolla contest
What 14 disclosed reports say about Rolla 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 |
|---|---|---|---|---|---|
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| Business logic lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Race condition 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.
-
COLLATERAL_MINTER_ROLE can be granted by the deployer of QuantConfig and mint arbitrary amount of tokens
The roles were removed, and now only the Controller contract can mint QTokens and CollateralTokens.
Disclosed
-
QTokens with the same symbol will lead to mistakes
The issue was fixed by including the full year in the token's symbol.
Disclosed
-
OperateProxy.callFunction() should check if the callee is a contract
The issue was fixed by adding a check to revert when the callee is not a contract.
Disclosed
-
ConfigTimeLockController will put QuantConfig in a stalemate (rendering it unusable)
The report recommends declaring a maximum delay constant and requiring the minimum delay to stay below it; the team said both contracts were removed from the protocol.
Disclosed
-
No use of upgradeable SafeERC20 contract in Controller.sol
The issue was fixed by using OpenZeppelin's upgradeable version of SafeERC20.
Disclosed
-
Wrong implementation of EIP712MetaTransaction
The contract should be made abstract and its initializer changed to internal with the onlyInitializing modifier, as confirmed resolved by the project.
Disclosed
-
EIP712MetaTransaction.executeMetaTransaction() failed txs are open to replay attacks
Failed transactions should still increase the nonce, and the report also suggests requiring sufficient gas to prevent insufficient gas griefing; the project confirmed these were fixed.
Disclosed
-
Incorrect strike price displayed in name/symbol of qToken
The `_slice` helper was fixed to index with `_start + i` so each character is copied correctly; the project confirmed it was resolved.
Disclosed
-
Mint spread collateral-less and conjuring collateral claims out of thin air with implicit arithmetic rounding and flawed int to uint conversion
The project resolved the issue by adding explicit rounding on fixed-point multiplication and division operations.
Disclosed
-
Admin of the upgradeable proxy contract of Controller.sol can rug users
The issue was resolved by removing the previous access control role-based system, and the report recommends holding user allowances in a non-upgradeable contract.
Disclosed
-
Low-level transfer via call() can fail silently
The contract should check for the account's existence prior to transferring, but the TimelockController was removed from the protocol.
Disclosed
-
Arbitrary code can be run with Controller as msg.sender
The project fixed this by adding a check that the supplied address is a legitimate qToken, likely via IOptionsFactory(optionsFactory).isQToken(_qToken), before calling permit().
Disclosed
-
Spreads can be minted with a deactivated oracle
The issue was fixed by requiring the oracle to be active during spread minting, as confirmed by the team.
Disclosed