The deposit cap was checked against total tokens rather than locked tokens, so an attacker could fill the cap with unlocked tokens. This prevented other users from locking tokens and caused the bootstrap to use zero locked amounts.
The LockingMultiRewards staking contract on Blast was deployed without configuring its gas yield mode or token yield mode, unlike other contracts in the protocol. As a result, gas fees and native yield rewards accrued on that contract cannot be claimed and are effectively lost.
The staking contract tracks rewards with internal accounting, so rebasing tokens such as USDB and WETH that accrue yield automatically cannot have that yield claimed. Any yield generated by these tokens as reward tokens would be lost.
The _GeneralIntegrate function in the MagicLP maths library divides before multiplying, so integer truncation loses precision when computing the penalty term. As a result, selling quote tokens returns fewer base tokens than the precise formula would give, with the report's example showing a 27.5% shortfall.
The contract allows the owner to change a parameter that directly affects the price, and a MEV bot can sandwich the transaction to profit at the expense of liquidity providers. The report notes that even without front-running, the sudden price change creates arbitrage opportunities.
The Factory contract's create function used tx.origin as the salt for deterministic cloning, so if two users share the same tx.origin (as observed on Blast), a reorg could let one user take over the other's deployed pool. An attacker could then withdraw funds sent to the victim's predicted pool address.
The reward rate calculation in LockingMultiRewards divides the reward amount by the remaining time without sufficient precision, causing a loss of up to 604799 units of the reward token per notification. This loss is shared among stakers, resulting in permanent yield reduction, with potential losses of $0.6 for USDC and $423 for WBTC per occurrence.
The MagicLpAggregator prices LP tokens by taking the minimum of two underlying oracle prices and applying it to the sum of both reserves, which undervalues the LP when the two assets have different prices. An attacker could buy LP tokens at this undervalued price, redeem them for the underlying assets, and sell those assets at their true market value for a profit.
The locking function calculates the unlock time based on the next epoch, which can shift if the transaction is delayed, causing tokens to be locked for an extra week. An attacker cannot directly exploit this, but a user's funds may be frozen longer than intended.
The MagicLpAggregator oracle calculates the price of a pair token using the pool's reserves, which can be manipulated. An attacker could use a flash loan to inflate the pair price and potentially exploit protocols relying on this oracle.
The contract used an incorrect function signature when calling Blast's configure function, so the call would fail if the contract's token balance exceeded 2. An attacker could donate a tiny amount of ETH to the contract to make the configure call revert, preventing yield from being set to claimable.
The MagicLpAggregator oracle contract calculates the price of MagicLP shares without accounting for the decimal precision of the MagicLP token, which matches the base token's decimals. When the base token has fewer than 18 decimals, the aggregator returns a price that is inflated by a factor of 10^(18 - baseDecimals), potentially causing incorrect collateral valuation.
The TWAP price accumulator in MagicLP is updated after reserves change, so an attacker can front-run a query with a large swap to inflate the recorded price for the entire elapsed period. Any integrating contract that uses this TWAP to price tokens could be manipulated into executing a losing trade.
The _getReserves function in the MagicLpAggregator contract did not return the reserve values fetched from the pair contract, causing latestAnswer to always return zero. This could lead dependent systems to receive incorrect price data, potentially causing financial loss or system failure.
The MagicLpAggregator's latestRoundData function returns zero for roundId, startedAt, updatedAt, and answeredInRound, which can cause integrations that check updatedAt for staleness to revert. An attacker could not directly exploit this, but it breaks compatibility with potential integrators.
A rounding error in the initial LP deposit of MagicLP pools allows an attacker to set the pool's target ratio to twice the intended value, breaking the invariant and causing incorrect pricing. An attacker could then trade against the pool to profit at the expense of other users.
When a MagicLP pool is created via the Router's createPool function, the initial share calculation can leave one token's target below its reserve if the deposited amounts differ. An attacker can then trade to profit at the expense of the pool's liquidity providers.
The Router contract uses safeTransferFrom to move WETH from itself to a new pool, but some WETH implementations (e.g., on Blast) do not allow a contract to transfer its own tokens without an allowance, causing the transaction to revert. This prevents the creation of native token pools on those chains.
A miscalculation in the addLiquidity function of the Router causes the requested token amounts to be incorrectly adjusted based on the pool's balance and reserves, leading to the victim spending more tokens than intended. An attacker can donate tokens to the pool to manipulate the calculation and force the victim to transfer extra funds.
The setStaking function in the BlastOnboardingBoot contract does not approve the new staking pool to spend the bootstrap LP tokens, nor does it revoke the old pool's approval. If the owner changes the staking contract, users cannot claim tokens into the new pool because the transfer fails.
AM
Abracadabra Mimswap
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.