Skip to content

Code4rena

Mimo DeFi contest

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

disclosed reports
19
most reported class
Access control
bug classes found
5
first disclosure
2022
Find Mimo DeFi contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Mimo DeFi contest chose to make public.

Business logic

Persisted msg.value in a loop of delegate calls can be used to drain ETH from your proxy

The proxy's batch function is payable and uses delegatecall, so msg.value persists across multiple calls to execute, allowing an attacker to reuse the same ETH for multiple deposits and drain proxy funds. Additionally, if the owner mistakenly grants access to a non-existent selector and the target has a fallback, the attacker can drain funds.

Mimo DeFi contest

Medium
Access control

Malicious targets can manipulate MIMOProxy permissions

The MIMOProxy contract stored envoy permissions in its own storage, so a malicious target contract called via delegatecall could overwrite those permissions. An attacker with an authorized envoy could grant themselves or others additional permissions.

Mimo DeFi contest

Medium
Access control

Automation / management can be set for not yet existing vault

The vault owner and proxy address both return zero for a non-existent vault and a caller without a proxy, so an access control check comparing them passes. An attacker could set automation or management parameters for a vault that does not yet exist, and when the vault is later created it would have those settings, potentially with very high fees leading to loss of funds.

Mimo DeFi contest

High
Access control

Incorrect implementation of access control in MIMOProxy:execute

The execute function in the MIMOProxy contract read the function selector from raw calldata using an assembly offset instead of from the data parameter, so extra bytes appended to a call could make the permission check see a permitted selector while the actual delegate call carried empty data. An account permitted to call one function could therefore invoke the target's fallback function without permission.

Mimo DeFi contest

High
Business logic

MIMOManagedRebalance.sol#rebalance calculates managerFee incorrectly

The manager fee in MIMOManagedRebalance was calculated using the flashloan amount in the collateral asset rather than its PAR value, making the fee unpredictable as the asset's price fluctuates. This could overcharge users or under-incentivise managers, potentially leading to unexpected liquidations.

Mimo DeFi contest

Medium
DoS

Malicious manipulation of gas reserve can deny access to MIMOProxy

The MIMOProxy contract stores a minimum gas reserve value that can be overwritten by a malicious target contract during a delegatecall, setting it to an extremely high number. This causes the gas stipend calculation to underflow and revert on every subsequent call, permanently blocking access to the proxy.

Mimo DeFi contest

Medium
Access control

ProxyFactory can circumvent ProxyRegistry

The proxy factory's deployFor function had no access control, so anyone could create proxies directly instead of going through the registry. Such unregistered proxies could still call all functions in the vault action contract, though not the privileged ones like leveraging and emptying the vault.

Mimo DeFi contest

Medium
Access control

Registry.sol fails to deliver expected functionality

The proxy registry stored ownership data separately from the proxy, so ownership transfers were not reflected in the registry. This could let a new owner lose access to vault funds while the old owner retained privileged access to automation configuration.

Mimo DeFi contest

High
DoS

SuperVault’s leverageSwap and emptyVaultOperation can become stuck

The leverageSwap and emptyVaultOperation functions approve a token for a large or full allowance without first resetting it to zero. For tokens like USDT that reject a positive-to-positive approval, these functions revert after the first use, making them unavailable for that token.

Mimo DeFi contest

Medium
Smart contracts

Decimal token underflow could produce loss of funds

The GUniLPOracle contract performs a decimal subtraction that can underflow when a pool token has more than 18 decimals. This could cause errors when the oracle calculates price values.

Mimo DeFi contest

Medium
Access control

Fund loss or theft by attacker with creating a flash loan and setting SuperVault as receiver so executeOperation() will be get called by lendingPool but with attackers specified params

The SuperVault contract's executeOperation() function can be called by anyone via Aave flash loans because it only checks that the caller is the lending pool, not that the vault initiated the loan. An attacker can specify malicious parameters to trigger rebalance or leverage operations with manipulated swap data, causing the vault to lose funds through bad trades or fees.

Mimo DeFi contest

High
Audit finding

ABDKMath64 performs multiplication on results of division

A fixed-point maths library performed division before multiplication, so Solidity's integer truncation could discard precision from the intermediate result. An attacker could not directly exploit this, but callers relying on the library could compute slightly wrong values.

Mimo DeFi contest

Medium
Business logic

Users can use updateBoost function to claim unfairly large rewards from liquidity mining contracts for themselves at cost of other users.

The updateBoost function allows a user to change their boost multiplier without first claiming rewards, so they can apply a higher multiplier to past stakes and claim more than their fair share. An attacker could steal liquidity mining rewards from honest users by calling updateBoost before repaying or claiming.

Mimo DeFi contest

Medium
Business logic

User can call liquidate() and steal all collateral due to arbitrary router call

The liquidate() function in PARMinerV2 allows an attacker to supply arbitrary router call data, which can invoke a function that sends ETH to the attacker's contract, giving them control. The attacker can then swap the ETH for PAR, deposit it to inflate the contract's PAR balance, and pass the final balance check, thereby stealing all collateral from the liquidated position.

Mimo DeFi contest

High
Business logic

Non-standard ERC20 Tokens are Not Supported

The SuperVault contract calls the standard ERC20 approve function, which reverts for tokens like USDT that do not return a boolean. This prevents the vault from operating with such tokens, impacting function availability.

Mimo DeFi contest

Medium