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.
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.
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.
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.
The remove_item function in UInt64SetLib computes the last index as items.length - 1 without checking for an empty array. Calling it with an empty array causes an unsigned underflow and aborts the transaction, reverting the call.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
FS
Folks Smart Contract Library
Informational
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.