#48885 [SC-Low] No items length check in remove_item leads to a revert with an underflow
Description
Brief/Intro
Vulnerability Details
def remove_item(to_remove: UInt64, items: DynamicArray[ARC4UInt64]) -> Tuple[Bool, DynamicArray[ARC4UInt64]]:
last_idx = items.length - 1
...Impact Details
References
Proof of Concept
Proof of Concept
Mitigation
Previous#48747 [SC-Insight] Consider emitting BucketConsumed for infinite buckets in RateLimiterNext#48804 [SC-Insight] Accelerated Rate Limit Refill via Block Timestamp Control
Was this helpful?