Hunt prep
Before you test Folks: Liquid Staking
What 15 disclosed reports say about Folks: Liquid Staking: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
"Potential Underflow Vulnerability in burn Function for total_active_stake_key"
The burn function should be modified to set the total active stake to zero when the amount to send exceeds it, instead of subtracting and causing an underflow.
Disclosed
-
Inflation attack in xalgo
The report proposes a minimum xAlgo mint threshold, a minimum Algo deposit, or minting dead xAlgo to the contract as the first depositor; it does not say the issue was fixed.
Disclosed
-
Contract upgrade failing due to SHA256 failing because of AVM byte width limits
The contract should store the new program code in box storage during the scheduling step, so that hashing can be done in chunks or the code can be retrieved without exceeding the byte-array limit.
Disclosed
-
Over-charging users on delayed mint
The issue should be fixed by removing the redundant address from the box contents.
Disclosed
-
Missing state validation upon Upgrade
The initialise function should check that invariants such as check_fee and check_premium are maintained after an update.
Disclosed
-
Truncation of mint_amount to zero leading to potential stake loss
The code should be fixed by adding an assertion that the mint amount is greater than zero, or by enforcing a minimum stake amount for delayed mints.
Disclosed
-
Consensus contract distributes Algo for proposers that are offline that cause losing of reward
The contract should track proposer status and prioritise ALGO distribution to online proposers.
Disclosed
-
Accounting Discrepancy in consensus_v2.py::burn()can potentially cause underflow and lead to temporary Denial of Service and a deliberate DOS Attack
The accounting should be corrected so the stake counter is reduced consistently with how it was credited, for example by separating principal from rewards or by recalibrating the counter, since the text only notes that an upgrade or manual recalibration could mitigate it.
Disclosed
-
Missing Event Emission when proposer are added prevents safe retrieval of index for subsequent operations
The protocol should emit an event containing the proposer's index and address when a proposer is added, and provide a way to look up an index from an address.
Disclosed
-
Incorrect total_active_stake reduction causes loss of funds for the users and excessive fees collection over time
The burn operation should reduce total_active_stake proportionally based only on the staked amount, not the full payout including rewards.
Disclosed