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.
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.
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.
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.
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.
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.
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.
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.
The withdraw and redeem functions of the ERC5095 contract sell principal tokens from the contract's own balance instead of transferring them from the owner, allowing anyone to sell any principal tokens held by the contract. This also causes legitimate withdrawals before maturity to fail if the contract lacks sufficient balance.
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.
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.
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.
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.
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.
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.
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.
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.
The Redeemer contract burns a user's Illuminate tokens but sends zero underlying tokens if the amount redeemed exceeds the recorded holdings for that underlying and maturity pair. An attacker could cause users to lose their tokens by having them redeem before holdings are updated.
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.
The setPrincipal function in the Marketplace contract failed to grant the lender the token allowances needed for Element vault and APWine router integrations, unlike createMarket which does. As a result the lender could not operate with those tokens and the protocol integration would fail.
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.
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.
The deposit function in ERC5095 does not verify that the number of shares returned is at least the amount of base tokens deposited. Due to a 1% slippage tolerance, a user could receive fewer shares than they paid, resulting in a loss of funds.
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 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.
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.
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.
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.
IR
Illuminate Round 2
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.