Skip to content

Immunefi

Folks: Liquid Staking

Every publicly disclosed report for Folks: Liquid Staking and what kind of bugs they were.

disclosed reports
15
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Folks: Liquid Staking on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Folks: Liquid Staking chose to make public.

DoS

Freezing of user funds when reward accumulated or added

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.

Folks: Liquid Staking

High
DoS

"Potential Underflow Vulnerability in burn Function for total_active_stake_key"

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.

Folks: Liquid Staking

High
Smart contracts

Inflation attack in xalgo

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.

Folks: Liquid Staking

Informational
Business logic

Underflow in burn() function will cause user funds to partially frozen

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.

Folks: Liquid Staking

High
DoS

Contract upgrade failing due to SHA256 failing because of AVM byte width limits

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.

Folks: Liquid Staking

Low
Business logic

Over-charging users on delayed mint

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.

Folks: Liquid Staking

Informational
Smart contracts

Underflow in burn method prevents all xALGO from being burnt

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.

Folks: Liquid Staking

High
Smart contracts

Missing state validation upon Upgrade

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.

Folks: Liquid Staking

Informational
Business logic

Truncation of mint_amount to zero leading to potential stake loss

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.

Folks: Liquid Staking

Informational
DoS

Accounting Discrepancy in consensus_v2.py::burn()can potentially cause underflow and lead to temporary Denial of Service and a deliberate DOS Attack

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.

Folks: Liquid Staking

High