Hunt prep
Before you test Folks Smart Contract Library
What 22 disclosed reports say about Folks Smart Contract Library: 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 |
|---|---|---|---|---|---|
| DoS lesson | 10 | 0 | – | – | $0 |
| Business logic lesson | 8 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Malicious upgradable admin can permanently brick contract upgradeability
The update function should enforce an upper bound on the minimum upgrade delay, such as 30 days.
Disclosed
-
Integer Underflow in UInt64SetLib.py
The function should check that the array has at least one element before subtracting one from its length.
Disclosed
-
An underflow in remove_item function in Uint64SetLib Contract.
The function should check whether the array length is zero and return a graceful false result before computing the last index.
Disclosed
-
The remove functionality in UInt64SetLib::remove_item underflows on empty array
Add an explicit guard at the top of remove_item to return false and the unchanged array if items.length is zero.
Disclosed
-
Invariant breakage , Edge case Integer UInt64SetLib.py::remove_item leads to int underflow
The function should check whether the array is empty and return an empty result before computing the last index.
Disclosed
-
UInt64SetLib#remove_item would revert if the item is empty
The function should check whether the set is empty before computing the last index and return false in that case.
Disclosed
-
AccessControl: unnecessary box usage in _grant_role
The redundant conditional block in the role-granting routine should be removed so the implicit default is relied upon.
Disclosed
-
SetLib.remove_item() is not safe on empty Dynamic arrays
The function should check whether the array is empty and return early before computing the last index or popping.
Disclosed
-
Array Underflow Vulnerability in UInt64SetLib leads to contract failure
The code should check if the array is empty before calculating the last index.
Disclosed
-
Critical UInt64 underflow in set removal causes permanent denial of service
The function should be fixed by adding a check that the set is not empty before performing the subtraction, or by documenting the precondition.
Disclosed
-
Integer underflow in remove_item leads to AVM trap and DoS via empty array call
The report recommends adding a guard at the start of remove_item that returns false and a copy of the array when the length is zero.
Disclosed
-
Underflow in index calculation fails remove_item
The library should include a check for an empty array before calling remove_item, or at least add a disclaimer similar to the maximum number of items supported.
Disclosed
-
No items length check in remove_item leads to a revert with an underflow
The function should check whether the array length is zero and return early before subtracting.
Disclosed
-
Consider emitting BucketConsumed for infinite buckets in RateLimiter
The code should either emit a BucketConsumed event at the early return or clearly document that these events will not be emitted for infinite buckets.
Disclosed
-
Contract Upgrade Completion DoS/Takeover Risk
Restrict upgrade completion to authorised users and make documentation explicit about securing the initialisation method.
Disclosed