Decent Smoke Owl
High
pendingOrderIds
array can grow indefinitely leading to inability to traverse all array items due to block gas limit.
- No upper limit for
pendingOrderIds
array - It grows when users create new orders
- It wont be possible to remove items when array is of such length as removing item require traversing the whole array.
pendingOrderIds
: https://github.com/sherlock-audit/2024-11-oku/blob/ee3f781a73d65e33fb452c9a44eb1337c5cfdbd6/oku-custom-order-types/contracts/automatedTrigger/OracleLess.sol#L15
removeFromArray()
: https://github.com/sherlock-audit/2024-11-oku/blob/ee3f781a73d65e33fb452c9a44eb1337c5cfdbd6/oku-custom-order-types/contracts/libraries/ArrayMutation.sol#L7C5-L29C6
N/A
N/A
User create many orders to grow the pendingOrderIds
array.
Complete DoS for the OracleLess
contract.
N/A
Consider adding an upper limit for the array.