The AuraVault redeem function passes the vault's own share amount directly to the Aura reward pool, which treats it as its own share amount. When the vault's share-to-asset ratio is not 1:1, users receive fewer assets than they are owed.
The flashLoan function in Flashlender.sol incorrectly uses repayCreditAccount to add fees, which does not update expectedLiquidity, causing WETH to be locked because withdrawals may underflow when expectedLiquidity is updated. An attacker could cause a denial of service by making withdrawals revert, trapping funds.
The decreaseLever function of the Position4626 contract withdraws collateral from the contract's own address rather than from the position passed in by the caller. Because the collateral sits in that position, the withdrawal always reverts, so decreasing leverage is impossible for Position4626 vaults.
The withdraw function in MultiFeeDistribution.sol enters an infinite loop when a user tries to withdraw more than their unlocked balance, because a zero-amount entry in the earnings array causes the loop counter never to advance. An attacker could trigger this to block the withdraw process for affected users.
The liquidation function in CDPVault transferred the internal collateral amount to the liquidator without scaling it by tokenScale, so for tokens whose scale is not one ether the liquidator received far more collateral than owed. This drained collateral belonging to other depositors, who could then no longer withdraw their funds.
The getSwapToken helper in SwapAction always returns the last asset in the Balancer asset array, which is only correct for EXACT_IN swaps. For EXACT_OUT swaps the output token is the first asset, so the function reports the wrong token.
The AuraVault contract's deposit and mint functions lack slippage controls, so users cannot specify a minimum number of shares or a maximum amount of assets. An attacker could exploit this by manipulating the share price, causing users to receive fewer shares or pay more assets than expected.
The CDPVault contract's pause mechanism can be bypassed because the public modifyCollateralAndDebt function lacks the whenNotPaused modifier, allowing users to deposit or withdraw even when the contract is paused.
The claim function in ChefIncentivesController allows anyone to vest tokens for any user, and each call adds an entry to the user's earnings array. An attacker can call this daily to bloat the array, causing the user's withdrawal to run out of gas and revert, permanently blocking access to vested tokens.
The reward eligibility check compares a USD value of locked LP tokens against a required value that is calculated by applying a ratio to a raw debt amount without first converting that debt to USD. As a result, the effective threshold is about 4.5% of total debt instead of the documented 5%, so users can qualify for rewards with less locked value than intended.
When a new reward incentive is added while a previous one is still active, the contract recalculates the reward rate by spreading leftover rewards over the new incentive's full duration, delaying and potentially reducing the original stakers' rewards. A malicious staker can then stake late and claim a portion of the delayed rewards, causing permanent loss for early stakers.
When a new emission schedule starts, the contract updates pools using the old rewards rate for the entire period since the last update, rather than switching to the new rate at the schedule's start time. This causes rewards to be allocated incorrectly, potentially over- or under-distributing tokens.
When a user becomes eligible for rewards, the contract assumes all their vault balances were already updated and only refreshes the vault that triggered the action. If an admin had previously called manualStopEmissionsFor, the other vault balances were zeroed, so the user misses out on rewards from those vaults.
The BalancerOracle contract's update function sets the safe price to the current price before recalculating a new price, so when the update window has passed, it returns a stale price from the last update. An attacker could potentially exploit this stale price to manipulate the oracle's output.
The function PoolAction::updateLeverJoin incorrectly updates the assetsIn array when the pool token does not match any token in the assets array, causing the array to be overwritten with wrong values. This leads to a revert in PositionAction4626::_onIncreaseLever, blocking users from increasing leverage when the collateral is an ERC4626 token.
The AuraVault contract hardcodes the inflation protection deadline as a fixed timestamp rather than deriving it from deployment time, so the intended one-year Aura reward distribution window shrinks with every day that passes before deployment. If the contract is deployed late enough, the condition guarding Aura reward transfers is never true and no Aura rewards are distributed at all.
The `_balancerExit` function returns the recipient's entire token balance instead of the amount received from the exit, causing an exaggerated return value. This can lead to reverts in `PositionAction4626::_onDecreaseLever` when the contract tries to send more tokens than it holds.
The _onWithdraw function in PositionAction4626.sol withdraws collateral from the contract's own address instead of the specified position, meaning withdrawals are taken from the wrong CDPVault position. An attacker could potentially withdraw funds from an unintended position, though the exact impact is not detailed.
The AuraVault claim function sends a fee percentage of rewards to the locker but then sends the full reward amount to the caller, so the contract can either run out of tokens and revert or pay out more than intended. An attacker could exploit this to take rewards that belong to others or cause a denial of service.
When a user withdraws collateral that is a Pendle token and asks for a different destination token, the contract exits the Pendle pool with the minimum output amount hard-coded to zero. An attacker or ordinary market movement could therefore let the user receive far fewer output tokens than expected.
The debt position interest is compounded while the pool interest is simple, causing borrowers to pay more interest than the pool expects. This inconsistency can lead to lowered borrowing rates and final withdrawals reverting due to underflow in expectedLiquidity.
The ERC4626 position action withdrew collateral from the proxy contract itself rather than from the CDPVault position address passed in, unlike the sibling position action contracts. This meant the proxy could not perform withdrawals on behalf of positions other than its own, breaking the intended cross-position functionality.
When decreasing leverage with an auxiliary swap enabled, the contract performs an exact-input swap using a hardcoded input amount, so any collateral left over after the primary swap is not fully consumed. Those leftover collateral tokens remain stuck in the contract instead of being returned to the recipient.
The deposit function in PositionAction.sol incorrectly requires the swap input token to equal the target collateral token, making the swap feature unusable. An attacker could not exploit this; it is a functional bug that prevents legitimate deposits with swaps.
The reward accounting sets the global last-update timestamp to the current block time even when individual pools were only advanced to an earlier reward end time, so the two timestamps drift apart. When a small reward deposit is registered after the end time has passed, some pools can later accrue more rewards than intended while others accrue less.
The claim function checked a user's reward eligibility before refreshing their status, so a user whose collateral value had fallen below the required threshold after a price change could still claim previously earned emissions. An attacker could therefore collect rewards they were no longer entitled to.
The repayCreditAccount function used convertToShares instead of _convertToShares to calculate profit and loss shares, which applies the wrong exchange rate. This could cause the treasury to receive or burn an incorrect number of lpETH shares.
The ERC20 permit signature verification in the transfer helper used the recipient address as the spender instead of the contract itself. This caused the permit check to fail and revert the whole increaseLever function when the recipient differed from the contract.
The reward distribution contract stores the current rewardsPerSecond in lastRPS when a distribution period ends, but if claim() is called again after the period ends, lastRPS is overwritten with zero. This prevents new reward deposits from restarting the distribution automatically, disrupting reward payouts until the owner manually resets the rate.
The reward index update function can advance the last balance without increasing the index when the accrued reward per share rounds down to zero, causing rewards to be lost. An attacker could repeatedly call getRewards to trigger this rounding loss, and the loss accumulates over time.
LO
LoopFi
High
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.