Skip to content

Code4rena

INIT Capital Invitational

Every publicly disclosed report for INIT Capital Invitational and what kind of bugs they were.

disclosed reports
15
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find INIT Capital Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what INIT Capital Invitational chose to make public.

Business logic

When the returnNative parameter is set to true in the _params provided to MoneyMarketHook.execute , it is not handled properly and could disrupt user expectations

The MoneyMarketHook.execute function does not handle the returnNative parameter correctly when withdrawing tokens, so the withdrawn tokens are not sent to the hook contract and cannot be converted to native currency for the caller. This could disrupt integrations that expect native tokens.

INIT Capital Invitational

Medium
Business logic

repay(), liquidate() and liquidateWLp() receive shares as argument, which may revert if from approval to tx settled blocks have passed

The repay, liquidate and liquidateWLp functions take a share amount as their argument, but the debt owed grows with time because interest accrues by timestamp. If a user approves exactly the amount needed and the transaction settles a few blocks later, the transfer can fail because the debt has grown beyond the approval.

INIT Capital Invitational

Medium
Business logic

If wLP is blacklisted, then user will not be able to withdraw it

A whitelisted wLP token used as collateral can later be blacklisted by the governor, and the withdrawal function then rejects it, so users cannot withdraw their deposited wLP. The same check in the liquidation function could also block liquidators, though the sponsor's planned blacklisting flow reduces that risk.

INIT Capital Invitational

Medium
DoS

API3 oracle timestamp can be set to future timestamp and block API3 Oracle usage to make code revert in underflow

The Api3OracleReader contract subtracts the oracle timestamp from the current block timestamp without checking which is larger, so if the oracle timestamp is in the future the subtraction underflows and the transaction reverts. An attacker could not directly set the timestamp, but a normal relayer update within the allowed one-hour future window would make price lookups revert, blocking any code that depends on the oracle.

INIT Capital Invitational

Medium
Business logic

collateralizeWLp can be bypassed even when collateralization is paused

The collateralizeWLp function checks whether collateralization is paused, but the collateral credit for wrapped LP tokens is calculated from the live LP token balance of the tokenId, which anyone can increase by donating tokens directly. An attacker could therefore add collateral to a position even when the admin has paused collateralization.

INIT Capital Invitational

Medium
Business logic

setPosMode function doesn’t check if wLp is whitelisted

The setPosMode function allows a position owner to change the position's mode without checking whether the wLp token used as collateral is still whitelisted. An attacker could move blacklisted collateral into a new mode, breaking the invariant that only whitelisted tokens can be used as collateral.

INIT Capital Invitational

Medium
Access control

wLp tokens could be stolen

The removeCollateralWLpTo function only checks that a tokenId belongs to the position when the full amount is removed, so an attacker can use another user's tokenId with a partial withdrawal to steal their wrapped LP tokens and rewards.

INIT Capital Invitational

High
Business logic

Admin configuration isAllowedForCollateral(mode, pool) can be bypassed by donating asset to the pool directly and then trigger sync cash via flashloan

The admin's restriction on which lending pools can be used as collateral can be bypassed by donating tokens directly to a pool and then triggering a cash sync via a flash loan. This inflates the pool's share value, allowing an attacker to borrow more than intended, especially if they can mint tokens infinitely.

INIT Capital Invitational

Medium
Race condition

Malicious user can steal native tokens of MoneyMarketHook caller

The MoneyMarketHook contract allows a caller to perform multiple withdrawals in one multicall. If a later withdrawal involves an ERC777 token, the recipient's hook can re-enter the execute function and steal the wrapped native tokens that were withdrawn earlier but not yet sent to the original caller.

INIT Capital Invitational

Medium
Business logic

_handleRepay of MoneyMarketHook does not consider the actual debt shares of the posId inside the position manager and could lead to a user’s tokens getting stuck inside the hook

The MoneyMarketHook contract calculates the repayment amount based on user-provided debt shares without checking the actual debt shares of the position, so if a liquidator front-runs and reduces the debt, the transferred tokens exceed what is needed and the excess becomes stuck in the hook. An attacker could exploit this by front-running a user's repayment with a liquidation, causing the user's tokens to be locked in the contract.

INIT Capital Invitational

High
Business logic

Liquidations can be prevented by frontrunning and liquidating 1 debt (or more) due to wrong assumption in POS_MANAGER

The position manager incorrectly assumes that a pool's debt share to amount conversion always increases, but a liquidation can reduce the debt amount, causing subsequent debt share updates to revert. An attacker can frontrun a liquidation with a tiny self-liquidation of 1 wei, making the victim's liquidation transaction revert and preventing the liquidation.

INIT Capital Invitational

High
Business logic

TRST-M-8 from previous audit still present

When repaying is paused, the pool still accrues interest on debt shares, so users cannot reduce their debt and it continues to grow. An attacker could exploit this by waiting for a pause to increase their debt, but the text does not describe an active attack.

INIT Capital Invitational

Medium