Skip to content

Code4rena

Notional x Index Coop

Every publicly disclosed report for Notional x Index Coop and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Notional x Index Coop on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Notional x Index Coop chose to make public.

Business logic

The logic of _isUnderlying() in NotionalTradeModule is wrong which will cause mintFCashPosition() and redeemFCashPosition() revert on fcash tokens which asset token is underlying token (asset.tokenType == TokenType.NonMintable)

The _isUnderlying() function in NotionalTradeModule incorrectly returns true for fCash tokens whose asset token is the underlying token, causing mintFCashPosition() and redeemFCashPosition() to call NotionalV2 with useUnderlying=true, which reverts. This makes the module incompatible with such fCash tokens, preventing managers from adding them to sets.

Notional x Index Coop

Medium
Business logic

transferfCash does not work as expected

When a user redeems with the option to transfer fCash after maturity, the contract cashes out the fCash into the underlying token and sends that to the receiver instead of transferring fCash. The sender receives no error and believes the fCash transfer succeeded.

Notional x Index Coop

Medium
DoS

Users Might Not Be Able To Purchase Or Redeem SetToken

The SetToken's issue and redeem hooks call a function that redeems all matured fCash positions, and if any single redemption fails, the whole function reverts. This would block all issuance and redemption of the SetToken, leaving user funds stuck.

Notional x Index Coop

Medium
Business logic

User can alter amount returned by redeem function due to control transfer

The redeem function calculates the amount of assets to return by comparing the receiver's balance before and after burning shares. Because the underlying token is an ERC777, burning shares transfers control to the receiver, who can move tokens out during that callback, making the balance difference smaller and reducing the assets returned.

Notional x Index Coop

Medium
Audit finding

Rounding Issues In Certain Functions

The vault's previewWithdraw and previewMint functions round down instead of up, contrary to the ERC-4626 standard. This could cause integration problems and potential loss of funds for other protocols that rely on the expected rounding behaviour.

Notional x Index Coop

High
Business logic

fCash of the wrong maturity and asset can be sent to wrapper address before wrapper is deployed

A wrapper contract's address can be precomputed because it is deployed with create2. An attacker can send fCash of the wrong maturity or asset to that address before deployment, so the ERC1155 receiver hook is not called. After deployment, the contract's balance check sees more than one asset and always reverts, making minting impossible.

Notional x Index Coop

Medium
Business logic

deposit() and mint() and _redeemInternal() in wfCashERC4626() will revert for all fcash that asset token is underlying token because they always call _mintInternal() with useUnderlying==True

The wfCashERC4626 contract always calls NotionalV2 with useUnderlying set to true, but for fCash tokens whose asset token is the underlying token, NotionalV2 rejects such calls. As a result, deposit, mint, withdraw and redeem revert for those tokens, making the wrapper unusable for them.

Notional x Index Coop

Medium
DoS

IsWrappedFcash check is a gas bomb

The `_isWrappedFCash` check in the notionalTradeModule uses a try-catch pattern that can consume all remaining gas when the target contract's fallback function does not revert but instead uses up gas. An attacker could cause transactions to fail or waste excessive gas by including a contract like cETH in a set token.

Notional x Index Coop

Medium
Access control

Residual Allowance Might Allow Tokens In SetToken To Be Stolen

The NotionalTradeModule contract approves the fCash wrapper to spend the SetToken's payment tokens using the maximum send amount, leaving a residual allowance after minting. If the upgradeable fCash wrapper contract is compromised, an attacker could exploit this allowance to withdraw funds from the SetToken contract.

Notional x Index Coop

Medium
Smart contracts

Silent overflow of _fCashAmount

The contract downcasts a user-supplied amount to a smaller integer type without checking, so a value larger than the type's maximum silently overflows. An attacker could pass such a value to cause unexpected behaviour, though the text does not specify the exact consequence.

Notional x Index Coop

Medium