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.
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.
The MIMOEmptyVault contract's executeOperation function repaid a flash loan but did not transfer leftover collateral back to the vault owner, leaving the funds locked in the contract. An attacker could not directly steal the funds, but the owner permanently lost access to the excess collateral.
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.
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.
The rebalance function in a vault contract could be re-entered via a malicious ERC20 token during a swap, allowing an attacker to manipulate vault value calculations and steal funds. The attacker could siphon up to half the total rebalance amount.
A vault owner can front-run a keeper's rebalance call by lowering the incentive fee via setAutomation, causing the keeper to receive less reward than expected. The attacker can then restore the fee afterwards.
If a MIMOProxy owner destroys their proxy via selfdestruct, the registry's check for an existing proxy reverts because it calls owner() on a destroyed contract, preventing deployment of a new proxy from the same address. The owner must use a new EOA address to deploy another proxy.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
MD
Mimo DeFi contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.