Skip to content

Immunefi

Folks Smart Contract Library

Every publicly disclosed report for Folks Smart Contract Library and what kind of bugs they were.

disclosed reports
22
most reported class
DoS
bug classes found
4
first disclosure
2025
Find Folks Smart Contract Library on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Folks Smart Contract Library chose to make public.

Access control

Malicious upgradable admin can permanently brick contract upgradeability

The upgradeable contract lets an admin set the minimum upgrade delay with no upper bound, so a malicious admin can set it to an enormous value. This makes any future upgrade impossible to schedule, and the delay change itself cannot be overridden quickly because it is also subject to the delay.

Folks Smart Contract Library

Informational
DoS

Underflow Revert in remove_item When Removing from an Empty Array

The remove_item subroutine in a smart contract library subtracts one from the array length without first checking whether the array is empty, so the subtraction underflows. An attacker or any caller passing an empty array causes the transaction to abort instead of receiving the promised 'not present' result.

Folks Smart Contract Library

Low
DoS

Integer Underflow in UInt64SetLib.py

The remove_item function in a smart contract library subtracts one from the array length without first checking that the array is non-empty. When called on an empty array, the subtraction underflows and the function reverts, which could cause a denial of service for dependent operations.

Folks Smart Contract Library

Low
DoS

An underflow in remove_item function in Uint64SetLib Contract.

The remove_item function in Uint64SetLib computes the last index as the array length minus one without checking whether the array is empty, so calling it on an empty set causes an underflow and an unexpected revert. An attacker or user could trigger this revert, causing a temporary denial of service for one block.

Folks Smart Contract Library

Low
Smart contracts

Invariant breakage , Edge case Integer UInt64SetLib.py::remove_item leads to int underflow

The remove_item function in a smart contract library computes an index as the array length minus one without checking for an empty array, so passing an empty set causes an integer underflow and the call reverts. An attacker or caller could trigger this revert, breaking the promised behaviour that removing from a set returns a set.

Folks Smart Contract Library

Low
Business logic

RateLimiter: incorrect infinite -> finite bucket transition

When a rate-limiter bucket is switched from a finite duration to an infinite one (duration zero) and back to finite, the stored capacity is not recalculated, so the bucket keeps its old, lower capacity instead of being restored to full. This can cause a temporary denial of service because legitimate consumption is rejected until the bucket refills.

Folks Smart Contract Library

Informational
Business logic

UInt64SetLib#remove_item would revert if the item is empty

The remove_item function in a smart contract library computes an index from the array length minus one without handling an empty array, so the subtraction produces a negative value the virtual machine rejects. An attacker or caller passing an empty set would cause the function to revert instead of returning false.

Folks Smart Contract Library

Low
Business logic

AccessControl: unnecessary box usage in _grant_role

The report notes that the internal role-granting routine writes the default admin role into storage for every new role, even though the role-admin lookup already falls back to that same default when no entry exists. This is a redundant storage write rather than an exploitable vulnerability, so no attacker impact is claimed.

Folks Smart Contract Library

Informational
DoS

SetLib.remove_item() is not safe on empty Dynamic arrays

The library's remove_item() function assumes the dynamic array always has at least one element, so calling it on an empty array underflows the length calculation and attempts to pop from an empty array. This causes a runtime error or revert, which could permanently break any contract functionality that relies on the function with an empty set.

Folks Smart Contract Library

Low
Business logic

The Function get_current_capacity() returns wrong value when bucket is infinite

The get_current_capacity() function returns the initial limit value for a bucket with zero duration (infinite capacity) instead of indicating infinite capacity. An attacker or user relying on this value could be misled about the actual remaining capacity.

Folks Smart Contract Library

Informational
DoS

Array Underflow Vulnerability in UInt64SetLib leads to contract failure

The remove_item function in UInt64SetLib subtracts 1 from the array length without checking if the array is empty, causing an integer underflow that wraps to a huge number and crashes the contract. An attacker could call remove_item with an empty array to cause a temporary denial of service for one block.

Folks Smart Contract Library

Low
DoS

Critical UInt64 underflow in set removal causes permanent denial of service

The remove_item subroutine in a smart contract library subtracts one from the set length without checking for an empty set, causing an unsigned integer underflow. An attacker can call remove_item on an empty set, which makes the transaction fail and permanently disables the function.

Folks Smart Contract Library

Low
DoS

Integer underflow in remove_item leads to AVM trap and DoS via empty array call

The remove_item function in a reusable UInt64 set library subtracts one from the array length without checking that the array is non-empty, so an empty array causes an integer underflow. Any contract calling it with an empty array hits a hard trap in the Algorand Virtual Machine, failing the whole transaction and allowing griefing or denial of service.

Folks Smart Contract Library

Low
Business logic

Potential Underflow in remove_item() on Empty Array

The remove_item function computes last_idx as items.length - 1 before checking whether the array is empty, so on an empty array the unsigned integer underflows to the maximum value. The function still returns the correct result, but the report argues the invalid index is a correctness and clarity issue.

Folks Smart Contract Library

Low
DoS

Underflow in index calculation fails remove_item

The remove_item subroutine in a smart contract library calculates an index that underflows when the input array is empty, causing the call to fail instead of returning false. An attacker could trigger this to block contract functionality that relies on the library.

Folks Smart Contract Library

Low
Smart contracts

No items length check in remove_item leads to a revert with an underflow

The remove_item function in a smart contract library does not check whether the items array is empty before subtracting one from its length. Calling it with an empty array causes an underflow panic and reverts the transaction.

Folks Smart Contract Library

Low
Business logic

Accelerated Rate Limit Refill via Block Timestamp Control

The rate limiter contract refills capacity based on the difference between the current block timestamp and the last update time. An attacker who is a block proposer can set the block timestamp up to 25 seconds ahead, causing the rate limit to refill faster than intended, potentially allowing them to bypass the limit.

Folks Smart Contract Library

Informational
Business logic

Consider emitting BucketConsumed for infinite buckets in RateLimiter

The RateLimiter contract's _consume_amount method returns early for infinite buckets without emitting a BucketConsumed event. An off-chain system monitoring these events would never see consumption from infinite buckets, which could be misleading.

Folks Smart Contract Library

Informational
Access control

Contract Upgrade Completion DoS/Takeover Risk

The Upgradeable contract module lets any user complete a scheduled contract upgrade, which resets the contract to an uninitialised state. A malicious user could do this before an authorised user, causing a temporary denial of service, and if initialisation is poorly guarded, could then initialise the contract and grant themselves the admin role.

Folks Smart Contract Library

Informational
DoS

RateLimiter current capacity can be permanently held at zero

An integer division in the RateLimiter capacity update can round down to zero when the time since the last update is small, yet the last-updated timestamp is still advanced. An attacker can repeatedly trigger the capacity update on-chain to keep a bucket's capacity at zero, denying service to rate-limited functions.

Folks Smart Contract Library

Informational