When rewards accumulate, the burn function's calculation of ALGO to return can exceed the total active stake, causing an underflow and reverting the transaction. This freezes user funds because the burn function becomes unusable, and a malicious actor can deliberately trigger it.
The burn function in the liquid staking contract subtracts the ALGO amount to send from the total active stake without checking if the amount exceeds the stake, which could cause an underflow and revert. This would temporarily prevent a user from burning their xALGO and claiming their yield.
The xAlgo liquid staking contract mints xAlgo at a 1:1 ratio when the protocol's Algo balance is zero, so an attacker can mint a tiny amount, donate Algo to a proposer to inflate the share price, and then force a victim's delayed mint to round down to almost nothing. The attacker then burns their own xAlgo and withdraws more Algo than they put in, taking funds from the victim.
The burn() function subtracts the ALGO amount to send from total_active_stake_key, which does not include rewards, so the subtraction can underflow when redeeming a large amount. This causes a small portion of user funds to be permanently frozen.
The contract's upgrade mechanism computes SHA256 hashes of the new approval and clear programs, but the Algorand Virtual Machine limits byte-array width to 4096 bytes, so hashing programs larger than that fails. An attacker cannot exploit this directly, but an admin attempting to upgrade to a program larger than 4096 bytes would see the update transaction fail.
The delayed mint feature stores the minter's address redundantly in both the box name and its contents, causing users to pay more ALGO in storage deposit than necessary. This over-charges users by 0.0128 ALGO per mint, reducing their returns.
The burn method in the xALGO liquid staking contract can underflow because it allocates the ALGO to return only from total_active_stake, while xALGO also represents staking rewards held in total_reward. As a result, a portion of minted xALGO cannot be burned, causing users who burn last to lose funds.
The contract's initialise function after an upgrade does not validate global state invariants such as the fee being below 100%. A rogue admin could set an excessive fee before upgrading, then claim fees that exceed actual rewards, stealing user funds.
The contract increases the total active stake only by the deposited amount when minting, but decreases it by the deposit plus the user's share of rewards when burning. An attacker could therefore drain rewards on a first-come-first-served basis, leaving later users unable to redeem their full deposit.
The delayed mint calculation can truncate the minted amount to zero when a small stake is divided by a large pool balance, so the user receives no xALGO while their stake is consumed and the claim box is deleted. An attacker or unlucky small staker could permanently lose the staked value.
The consensus contract distributes ALGO to all proposers, including those registered as offline, so offline proposers receive stake that earns no rewards. This reduces the rewards earned by active proposers and can lower users' interest if many proposers are offline for long periods.
The burn function in a liquid staking contract subtracts the full ALGO payout, including accumulated rewards, from the total active stake, which was only credited at the original mint value. Over time this accounting gap can make the subtraction underflow, reverting burns and temporarily freezing users' funds.
The add_proposer method in the consensus contract neither emits an event nor returns the index at which a new proposer was stored. Off-chain systems and users therefore cannot easily learn a proposer's index, which is needed by later operations such as admin registration and xgov subscribe/unsubscribe.
The burn function reduces total_active_stake by the full withdrawal amount, which includes rewards, so the stake is understated. This inflates the calculated rewards and the protocol fees taken from user funds, and the error compounds with each burn.
The contract's total active stake variable is not increased when rewards accrue, so burning xAlgo can try to subtract more than the stored value and underflow. This can permanently freeze funds for the last user to withdraw.
FL
Folks: Liquid Staking
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.