The governance tolerance check was applied after the function body ran, so during a flash governance decision the parameters were not restricted. An attacker could set a soul's fps to an extremely large value and then claim inflated Flan rewards.
The safeTransfer function in the Flan contract checks the contract's own balance instead of the sender's balance, so transfers only work if the contract holds enough tokens. An attacker could not steal funds, but users cannot transfer their own flan unless the contract has a sufficient balance.
A voter can flip a governance decision at the last moment without triggering the vote-extension logic by first sending a vote that exactly cancels the current tally to zero, then sending another vote to change the outcome. This bypasses the intended protection that extends the voting period when a vote is flipped.
The stake function only calculates pending rewards when the staked amount is greater than zero, but it still updates the reward debt even for zero-amount stakes. A user with pending rewards who calls stake with zero loses those rewards because the debt is increased without crediting the reward.
The buyFlanAndBurn function executes swaps without a minimum output amount, allowing a malicious bot to sandwich the trade and cause the contract to overspend input tokens. This results in a direct loss for the system.
The transferAndCall function in the ERC677 contract implementation transfers the specified token amount twice instead of once. An attacker could call this function to send tokens to a recipient and have double the amount deducted from their balance, potentially causing unintended token loss or manipulation.
The purchasePyroFlan() function calculates the flan-stablecoin price from Uniswap pool balances at a single point in time, which can be manipulated with a flash loan. An attacker could skew the pool price to obtain more flan and pyroflan than intended, especially when the pool has low liquidity.
The UniswapHelper contract checks that its SCX balance equals a parameter passed by the caller, but an attacker can send SCX directly to the contract to make the balance exceed the parameter, causing any migration to revert. This allows an attacker to prevent migrations until the extra SCX is used to buy and burn Flan.
A zero value in a variable used to calculate adjustedRectangle would make excessSCX equal all scxMinted, and since adjustedRectangle is zero, nothing is deducted from scxMinted, putting all minted SCX at risk of being burnt. The check on line 224 would also fail for high-value migrations, preventing SCX from being sent to the AMM helper and LP from being minted.
The public function generateFLNQuote can be called twice in the same block, causing the two most recent quotes to have the same block number. This makes the price stability check revert, blocking any migration that relies on it.
The burnAsset function does not account for fee-on-transfer tokens when calculating the amount of fate tokens to credit, leading to an incorrect fateBalance and emitted fateCreated value. An attacker could exploit this to receive more fate tokens than deserved when burning a fee-on-transfer asset.
A logic error in the burnFlashGovernanceAsset function resets a user's pendingFlashDecision to default, allowing that user to withdraw another user's locked assets. An attacker can thus steal assets locked in future flash governance decisions.
Proposal contracts allow anyone to call the parameterize function to change proposal parameters because it is only protected by the notCurrent modifier. An attacker can front-run a proposal transaction, alter the parameters to undesirable ones, causing the community to reject the proposal and the proposer to lose their deposit.
The burn function for flash governance proposals overwrites the user's pending decision with the default config instead of clearing it, so the user's tokens are not actually burned and their unlock time becomes a short duration. An attacker could exploit this to avoid the intended token burn and unlock their funds earlier than intended.
The withdrawGovernanceAsset function sends the asset to the caller before deleting the pending decision record, so a token that hands control back during the transfer lets the attacker withdraw repeatedly. An attacker could drain the contract's balance of the configured asset.
The unlockTime in the FlashGovernanceArbiter contract is incorrectly incremented by block.timestamp instead of being set to a fixed future time. An attacker could repeatedly call assertGovernanceApproved to push unlockTime far into the future, causing a denial of service for withdrawGovernanceAsset.
The assertGovernanceApproved function lacks access control, allowing anyone to call it with a victim's address and emergency flag set to true. This locks the victim's approved funds for the unlock period, preventing them from executing their governance decision.
The RebaseProxy contract's minting function used the proxy's total base balance instead of the amount being minted, causing an incorrect number of tokens to be minted. An attacker could potentially exploit this to mint an excessive amount of tokens.
The LP token pricing formula in LimboDAO's burnAsset function can be manipulated by swapping a large amount of EYE tokens into the Uniswap pool, inflating the LP token value. An attacker can use a flashloan to temporarily inflate the pool, burn their LP tokens for more fate tokens, and then swap back, gaining extra voting power or profit.
The contract overwrites a user's pending flash governance decision when assertGovernanceApproved is called again for the same target and sender, causing previously locked tokens to become unaccounted for and locked in the contract. An attacker can call this public function to make any arbitrary sender's tokens inaccessible.
BC
Behodler contest
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.