Hunt prep
Before you test INIT Capital Invitational
What 7 disclosed reports say about INIT Capital Invitational: 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 |
|---|---|---|---|---|---|
| Business logic lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 1 | 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.
-
MarginTradingHook#updateOrder lacks access control
Add a check that the order's stored initPosId matches the caller's initPosId, similar to the cancelOrder function.
Disclosed
-
fillOrder executor can be front-run by the order creator by changing order’s limitPrice_e36 , the executor’s assets can be stolen
The project said it would change the update logic so an order is cancelled and recreated rather than modified in place.
Disclosed
-
Order’s creator can update tokenOut to arbitrary token
The updateOrder function should validate that the new tokenOut equals the margin position's baseAsset or quoteAsset, as the report recommends.
Disclosed
-
fillOrder not properly cancel order when collateral of position is empty
The fix should update the storage mapping entry, __orders[_orderId].status, instead of the memory variable.
Disclosed
-
MarginTradingHook users could potentially be DOSed
The reporter suggested an explicit opt-in parameter for native refunds or removing the require so a failed refund does not revert the call; the maintainer said they would add a note telling hook users to be able to receive native tokens.
Disclosed
-
SwapType.CloseExactOut balance check too strict can be DOSed
The check should use a greater-than-or-equal comparison rather than exact equality.
Disclosed