When a pod has a transfer tax enabled, the burn fee is applied recursively because burning is itself a transfer, causing the total supply to decrease more than intended and users to lose extra tokens. Over many transfers, buys, and sells, the total supply becomes lower than it should be, leading to incorrect minting during bonding.
Fees collected in a pod are only swapped into staking rewards once they pass a minimum threshold, and that threshold is measured from the pod's own token balance, which anyone can top up with a direct transfer. An attacker could stake just before pushing the balance over the minimum, then unstake in the same transaction to claim a share of rewards they did not earn, potentially amplified with a flash loan.
When SPTKN is configured as a stakeable token in VotingPool, staking and unstaking transfers SPTKN to and from the contract, which causes reward tokens to be sent to the contract as well. Because no mechanism handles those reward tokens, they become locked in the contract.
The `addInterest` function in `LendingAssetVault` only updates interest when the utilisation rate changes by at least 0.1%, but it uses stale total asset and borrow values, so interest is often not accrued. An attacker can deposit after a period of inactivity, then trigger an update to capture interest earned before their deposit, effectively claiming rewards for time they were not staked.
The protocol fee is charged twice on the same reward tokens when a swap from the paired LP token to the pod and staking pool token fails, leaving the tokens in the contract. An attacker could trigger this failure to cause users to lose rewards to excessive fees.
The V3Locker contract's constructor hardcodes a single NonfungiblePositionManager address, but that address is not the same on every chain the protocol targets. As a result the locker cannot function correctly on chains where the deployed position manager lives at a different address.
The function `_getSwapAmt` incorrectly assumes that the first reserve returned by Uniswap V2 corresponds to the first token argument, but reserves are sorted by token address. This mismatch can cause swap calculations to be wrong, leading to failed swaps or unintended behaviour that may be exploited for arbitrage.
The AutoCompoundingPodLp contract compounds rewards from TokenRewards without first distributing them, so pending rewards can be compounded late. An attacker can deposit and redeem in a single transaction to capture a share of rewards meant for existing stakers.
The contract charges an open fee based on the user's desired paired token amount rather than the amount actually used in the liquidity provision, causing users to overpay fees on leftover tokens. An attacker could exploit this by setting a high desired amount to increase the overpayment, though the primary impact is accidental overcharging.
The contract reduces the user-supplied minimum output amount by an additional slippage percentage, so swaps can return less than the user's stated minimum. MEV bots can exploit this to steal funds from users.
The LeverageManager contract underquotes the number of shares needed to redeem borrow tokens when removing leverage, due to rounding down in convertToShares and redeem. This causes the flash loan repayment to fail, reverting the removal of leverage.
The AutoCompoundingPodLp contract's _pairedLpTokenToPodLp function does not account for existing pTKN balance when swapping pairedLpTKN to pTKN, leading to an imbalance that can cause liquidity addition to fail and pTKN to become stuck. An attacker can donate pTKN to trigger this imbalance, potentially causing a denial of service.
When adding liquidity, the contract transfers a paired LP token that charges a transfer tax, so the pod receives slightly less than the amount it then tries to add to the DEX. The DEX call reverts, meaning self-lending cannot be set up for paired LP token pods that have a transfer tax enabled.
The function `_acquireBorrowTokenForRepayment` attempts to transfer tokens from `_props.sender`, which is never set, so the transfer is from the zero address and reverts. This prevents users from providing their own tokens to repay a flash loan, causing `removeLeverage` to fail when the alternative swap method is unavailable.
When removing leverage, if the user sets a minimum output amount for the pTKN to borrowed token swap, any leftover borrowed tokens are not returned to the user but remain stuck in the contract. An attacker could potentially exploit this by front-running to cause a larger leftover, but the report does not describe an attack path.
The debondAndLock function in PodUnwrapLocker accepts any address as the pod without validating it, so an attacker can supply a malicious contract that reports the same token twice. This lets the attacker withdraw twice the amount of tokens they deposited, draining tokens other users have locked in the contract.
The AutoCompoundingPodLpFactory mints initial shares to the deployer instead of a dead address, allowing the deployer to withdraw them. An attacker can exploit this to inflate the share price and cause a loss for later depositors.
The utilization rate calculation in a Fraxlend pair was wrong, using borrowed tokens divided by available (unborrowed) tokens instead of borrowed divided by total assets. A malicious lender could repeatedly call the interest update function to inflate the interest owed by borrowers by more than 10% per day.
When the LEAVE_AS_PAIRED_LP_TOKEN option is enabled, the TokenRewards contract reverts on depositFromPairedLpToken if there are no stakers, causing all debond and stake operations to fail permanently. This leads to a denial of service where users cannot withdraw their funds.
The AutoCompoundingPodLP contract computes its minimum-output slippage check for a pairedLpTKn to pTKN swap using an oracle that returns the base-token-to-pTKN price rather than the paired-LP-token-to-pTKN price. For podded or fraxlend pair tokens the two prices differ by a constant asset/share ratio, so the slippage floor is set too low and attackers may be able to sandwich the swap.
The LeverageManager contract only charges a close fee on pTKN tokens returned to the user, not on borrowedTKN tokens. An attacker can bypass the fee by swapping most or all pTKN to borrowedTKN during the leverage removal process.
Four functions in the LendingAssetVault contract change the vault's asset balance without triggering an interest update across the linked FraxlendPairs. This leaves the interest rate for those pairs inaccurate, since their rates depend on the utilisation rate that in turn depends on the vault's asset amount.
The AutoCompoundingPodLp contract's two-hop swap function may leave intermediate tokens stuck in the contract when a maxSwap limit is set for the intermediate token. This results in a loss of rewards because those leftover tokens are never used in future swaps.
The _resetExcluded function in TokenRewards updates excluded rewards for all reward tokens without checking whether a token is paused in REWARDS_WHITELISTER. This can lead to incorrect reward calculations for stakers when paused tokens are involved.
The spTKNMinimalOracle is meant to fall back to a second price source when one fails, but a require statement in _calculateSpTknPerBase() reverts instead of returning zero. If one oracle source fails, the whole price call reverts, causing a denial of service in Fraxlend.
The remove leverage function in the LeverageManager contract calculates the borrow shares to repay using a stale interest rate because addInterest does not always update the interest. When repayAsset later accrues interest, the required asset amount exceeds the allowance, causing the transaction to revert. This can prevent a user from reducing leverage and lead to liquidation.
The conversion factor used to price spTKN LP tokens in VotingPool applies the Uniswap V2 fair LP pricing formula incorrectly: the PEAS/stablecoin price is inverted, stablecoins with fewer than 18 decimals are not normalised, and a multiplication can overflow. As a result users are minted the wrong number of VotingPool shares for their staked tokens.
PE
Peapods
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.