Skip to content

Sherlock

Illuminate Round 2

Every publicly disclosed report for Illuminate Round 2 and what kind of bugs they were.

disclosed reports
38
most reported class
Business logic
bug classes found
3
first disclosure
2022
Find Illuminate Round 2 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Illuminate Round 2 chose to make public.

Business logic

ERC5095 has not approved MarketPlace to spend tokens in ERC5095

ERC5095 does not approve the MarketPlace contract to spend its tokens before calling sellUnderlying or sellPrincipalToken, which use transferFrom. As a result, functions like deposit, mint, withdraw, and redeem fail, preventing users from selling tokens through ERC5095.

Illuminate Round 2

Medium
Business logic

Illuminate's PT doesn't respect users' slippage specifications for underlyings

The ERC5095 contract's withdraw and redeem functions add an extra 1% slippage tolerance on top of the user's specified limit, so users may receive less underlying than they requested. This could cause users to lose part of their principal if they used an external principal token to mint the Illuminate PT.

Illuminate Round 2

High
Business logic

The Notional version of `lend()` can be used to lock iPTs

The Notional version of the lend() function lacks a check that the principal value p corresponds to Notional, allowing an attacker to pass an Illuminate principal value and cause the contract to buy iPTs for itself and then mint additional iPTs to the attacker. This can lock extra iPTs in the Lender contract, reducing the underlying available for other users to redeem.

Illuminate Round 2

High
Business logic

Protocol fees not taken on premium

The Swivel version of the lend function allows users to use extra underlying premium to buy more iPTs without paying a protocol fee on that premium. Attackers could exploit this to avoid fees by using the Swivel version instead of the Illuminate version.

Illuminate Round 2

Medium
Business logic

Illuminate's PT doesn't respect users' slippage specifications

The withdraw and redeem functions in Illuminate's PT contract add an extra 1% slippage on top of the user's specified limit, allowing more slippage than requested. An attacker could exploit this to cause users to lose more funds than intended, potentially including part of their principal.

Illuminate Round 2

High
Business logic

Sense redeem is unavailable and funds are frozen for underlyings whose decimals are smaller than the corresponding IBT decimals

The Sense redeem function compares the amount of Sense principal tokens (which have the same decimals as the interest-bearing token) with the amount of underlying received, without adjusting for decimal differences. For underlyings with fewer decimals than the interest-bearing token, this check always fails, blocking redemption and freezing funds; for underlyings with more decimals, the check is ineffective, allowing sandwich attacks.

Illuminate Round 2

High
Business logic

User can accidentally burn their iPT tokens during redemption

The redeem function burns a user's iPT tokens even when the holdings mapping is empty, so the user receives zero underlying tokens. A user who calls this function before the other redeem function (which burns external PT tokens) will lose their iPT tokens without compensation.

Illuminate Round 2

High
Race condition

Yield, Swivel, Element, APWine and Sense lend() are subject to reentracy resulting in Illuminate PT over-mint

The lend() functions for Yield, Swivel, Element, APWine and Sense calculate the number of Illuminate PTs to mint based on the balance difference before and after calling a user-supplied contract, without reentrancy protection. An attacker could use a malicious contract to reenter the same lend() function multiple times, causing the balance difference to be counted multiple times and minting far more Illuminate PTs than deserved, allowing them to steal funds from other users.

Illuminate Round 2

High
Business logic

Illuminate PTs can be used to mint other Illuminate PTs

The Lender.mint() function allowed anyone to exchange Illuminate principal tokens (PTs) for newly minted Illuminate PTs, because Illuminate PTs were themselves supported as input. An attacker could repeatedly mint new Illuminate PTs without adding asset backing, inflating the total supply and diluting the redemption value of all existing Illuminate PTs to near zero.

Illuminate Round 2

High
Business logic

Incorrect parameters

The report identifies two parameter-passing mistakes in the Illuminate protocol: one function approves a non-existent token instead of the underlying token, and another passes a slippage ratio where a minimum amount is expected. These errors could cause insufficient approvals or unexpected slippage.

Illuminate Round 2

Medium
Business logic

Converter cannot be changed in Redeemer

The Redeemer contract's setConverter function can change the converter address, but the new converter cannot function because the necessary token approvals can only be granted once, during market creation. This could prevent the protocol from upgrading the converter, potentially freezing funds if a new converter is needed.

Illuminate Round 2

Medium
Business logic

APWine PT redemptions can be blocked forever

APWine PT redemptions can be permanently blocked because the Redeemer contract assumes it will always have enough FYTs to match the PTs it holds. An attacker can send a tiny amount of extra PTs after a roll, causing the redemption to fail and locking all Illuminate PT holders' funds for that market.

Illuminate Round 2

High
Business logic

Lender#lend for Sense has mismatched decimals

The Lender#lend function for Sense principal tokens assumes the decimals of the Sense principal token match the decimals of the ERC5095 vault, but they differ (e.g., USDC Sense token has 8 decimals while the vault has 6). An attacker can exploit this to mint roughly 100 times more vault shares than intended, stealing yield from other users.

Illuminate Round 2

High
Audit finding

External PT redeem functions can be reentered to double count the received underlying funds

The Redeemer contract's redeem functions for multiple principal token protocols and for Sense calculate the underlying funds received as a balance difference, but they can be reentered because the Sense version calls a user-supplied adapter. An attacker can create a malicious adapter that first calls the multi-PT redeem function for all other PT types, causing those funds to be counted twice, and then redeem Illuminate PTs to extract up to double the underlying funds, potentially making the contract insolvent.

Illuminate Round 2

High
Business logic

Wrong Illuminate PT allowance checks lead to loss of principal

The withdraw function incorrectly deducts the underlying amount from the allowance instead of the equivalent shares, allowing a user to withdraw more shares than approved when shares are worth less than underlying. This could lead to loss of principal for users who granted allowances.

Illuminate Round 2

Medium
Business logic

Notional PT redemptions do not use flash-resistant prices

The Illuminate protocol's redemption logic uses Notional's maxRedeem() to determine how many principal tokens to redeem, but maxRedeem() may return less than the actual balance, leading to fewer tokens being redeemed and users receiving less underlying than owed. This could cause permanent freezing of funds for all Illuminate PT holders in a market.

Illuminate Round 2

Medium
Business logic

Sense PTs can never be redeemed

The Redeemer contract never approves the Converter to transfer Sense principal tokens, so redeeming Sense PTs always reverts. This permanently locks the underlying funds and causes users who redeem Illuminate PTs to lose their principal.

Illuminate Round 2

High
Business logic

Fee-on-transfer underlyings can be used to mint Illuminate PTs without fees

The Lender contract does not verify the actual amount of underlying tokens received after a transfer, so if a fee-on-transfer token is used, the contract may mint principal tokens without collecting the intended fee. An attacker could mint free principal tokens at the expense of the protocol's fees.

Illuminate Round 2

Medium
Business logic

Unlimited mint of Illuminate PTs is possible whenever any market is uninitialized and unpaused

The Lender contract's mint function does not check that the principal token address obtained from the marketplace is non-zero. If a market is uninitialized but not paused, an attacker can call mint with a zero principal token, and because the transfer from the zero address succeeds, they receive unlimited Illuminate PTs for free.

Illuminate Round 2

High
Business logic

ERC5095.mint function calculates slippage incorrectly

The ERC5095.mint function calculates slippage based on the asset amount rather than the shares amount, allowing users to receive fewer shares than expected. An attacker could exploit this to cause users to lose up to 2% of their funds.

Illuminate Round 2

Medium
Business logic

Illuminate redemptions don't account for protocol pauses/temporary blocklistings

Illuminate redemptions do not account for external principal tokens being paused or temporarily blocked, so users can burn their Illuminate PTs for a share of only the currently available underlying, losing principal if some external PTs cannot be redeemed. An attacker could exploit this by redeeming while external PTs are paused, causing the user to lose funds that later benefit remaining users.

Illuminate Round 2

High
Business logic

Users can mint free Illuminate PTs if underlying decimals don't match external PTs

The Illuminate PT minting function does not adjust for decimal differences between external principal tokens and the underlying asset, so users can mint Illuminate PTs at a 1:1 ratio regardless of decimals. An attacker could mint large amounts of Illuminate PTs using external PTs with fewer decimals, inflating away the value of existing Illuminate PTs.

Illuminate Round 2

High
Business logic

User-supplied AMM pools and no input validation allows stealing of stEth protocol fees

The lend methods in several protocols accept user-supplied underlying asset and swap pool without verifying they match, allowing an attacker to supply a cheap token like DAI while instructing the contract to swap its accumulated stEth fees with zero minimum output. By sandwiching the transaction, the attacker can steal all stEth fees.

Illuminate Round 2

High
Business logic

No returning of premium if there is no swap to PT

When the Swivel lend() function is called with the premium swap flag set to false, the underlying funds from filled orders remain in the contract and are not returned to the user. An attacker could cause these funds to become stuck, requiring manual administrative withdrawal.

Illuminate Round 2

High