Skip to content

Code4rena

Illuminate contest

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

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

Disclosed reports

Newest first. Only what Illuminate contest chose to make public.

Business logic

Pendle Uses Wrong Return Value For swapExactTokensForTokens()

The Pendle lend function incorrectly uses the first element of the array returned by swapExactTokensForTokens as the output amount, when it actually represents the input amount. This causes the number of PT tokens minted to the caller to be wrong, likely over- or under-stated depending on the exchange rate.

Illuminate contest

High
DoS

Redeem Sense can be bricked

The Redeemer contract allows a user to supply an arbitrary Sense market address, and when that address is a malicious contract that does nothing, the Redeemer transfers the lender's principal to itself but never redeems it. This locks the principal and prevents any further redemption of that Sense market.

Illuminate contest

High
Business logic

ERC5095 redeem/withdraw does not update allowances

The ERC5095 redeem and withdraw functions check that the caller has sufficient allowance but never reduce that allowance after burning tokens. An approved account can therefore repeatedly redeem the holder's tokens, draining their funds.

Illuminate contest

High
Business logic

Able to mint any amount of PT

The lend functions in the Illuminate protocol did not validate the addresses of external contracts (Yieldspace pool, Sense AMM, APWine pool) passed as arguments. A malicious user could supply a contract they control that returns an arbitrary value for the amount of principal tokens (PT) gained, causing the protocol to mint more PT than deserved.

Illuminate contest

High
Business logic

Unable to redeem from Notional

The maxRedeem function in Redeemer.sol only reports the contract's own balance of PT tokens and never actually redeems them from Notional. As a result, a user cannot redeem their PT through Redeemer.sol, leaving funds stuck.

Illuminate contest

High
Business logic

Calls To Swivel.initiate() Do Not Verify o.exit or o.vault Allowing An Attacker To Manipulate Accounting In Their Favour

The lend() function in Illuminate's Lender contract did not validate the exit and vault fields of an order before calling Swivel.initiate(), allowing a caller to choose a different internal Swivel function. This could cause more underlying tokens to be transferred from the Lender than intended, potentially stealing funds from the Lender.

Illuminate contest

Medium
Access control

Centralisation Risk: Admin Can Change Important Variables To Steal Funds

The report claims that the admin of the Illuminate protocol can use several privileged functions to steal user funds, for example by approving arbitrary token transfers or setting fees to 100%. The text argues that without a timelock or DAO, the admin has the power to rug pull the protocol.

Illuminate contest

Medium
Business logic

Lend method signature for illuminate does not track the accumulated fee

The Lend method in Illuminate's lending contract does not add the calculated fee into the accumulated fees mapping, so fees are not tracked for the admin to withdraw. An attacker or user could cause fees to be stuck, forcing the admin to wait at least three days and use the normal withdraw path instead of the fee withdrawal function.

Illuminate contest

Medium
Business logic

withdraw eToken before withdrawFee of eToken could render withdrawFee of eToken unfunctioning

The withdrawFee function requires the contract's eToken balance to cover accumulated fees, but if the admin first withdraws all eTokens, the balance becomes zero while fees remain, making withdrawFee unusable. An attacker cannot directly exploit this, but the admin must rely on a slow withdrawal process to recover future fees.

Illuminate contest

Medium
Business logic

Leak of Value in yield function, slippage check is not effective

The yield function uses the output of sellBasePreview as a slippage check but performs no validation on it, so the check is equivalent to setting the value to zero. An attacker could exploit this to cause the protocol to accept unfavourable trades.

Illuminate contest

Medium
Business logic

Easily bypassing admins ‘pause’ for swivel

The lender contract's function used the caller-supplied principal enum only for a pause check and an event, so an attacker could pass a different, unpaused principal to bypass the admin's pause on Swivel. This could let a paused, dangerous external principal continue to be used, risking loss of funds.

Illuminate contest

Medium
Smart contracts

Division Before Multiplication Can Lead To Zero Rounding Of Return Amount

In the Swivel branch of the lend function, the return amount is computed by dividing the premium by the principal before multiplying by the lent amount, so integer rounding can make the result zero. An attacker could then have their underlying tokens transferred in while nothing is passed on to yield, effectively losing the user's funds.

Illuminate contest

High
Business logic

The lend function for tempus uses the wrong return value of depositAndFix

The lend function for Tempus used the first return value of depositAndFix instead of the second, which represents the number of principal tokens exchanged. This caused the contract to mint an incorrect number of Illuminate tokens to the user.

Illuminate contest

High
Access control

Allowance check always true in ERC5095 redeem

The redeem function in an ERC5095 implementation checked the allowance against a return variable that was zero at that point, so the check always passed. Anyone could redeem tokens on behalf of another user without approval.

Illuminate contest

High
Business logic

Redeemer.redeem() for Element withdraws PT to wrong address.

The Redeemer contract's redeem function for Element sends withdrawn principal tokens to the marketplace address instead of the Redeemer contract, causing a loss of PT. An attacker could exploit this to make the contract lose funds.

Illuminate contest

High
Business logic

Tempus lend method wrongly calculates amount of iPT tokens to mint

The Tempus lend method incorrectly calculates the amount of iPT tokens to mint by subtracting the contract's iPT balance from the return value of depositAndFix, which returns nothing. This causes the function to revert if the contract holds iPT, or mint zero iPT otherwise.

Illuminate contest

High
Smart contracts

Not minting iPTs for lenders in several lend functions

Several lend functions in the Lender contract transfer the lender's funds to external principal token protocols but never mint the corresponding Illuminate principal tokens back to the lender. A lender using these functions would lose their funds without receiving the iPTs they expected.

Illuminate contest

High
Access control

Illuminate PT redeeming allows for burning from other accounts

The Illuminate redeem function checked the caller's balance but burned tokens from a user-supplied address, so an attacker could burn other users' shares and redeem the underlying tokens for themselves.

Illuminate contest

High
Business logic

Incorrect implementation of APWine and Tempus redeem

The redeem function for APWine and Tempus PT incorrectly transfers the underlying token instead of the principal token, causing redemption to always fail and leaving iPT unredeemable for the underlying token.

Illuminate contest

High
Smart contracts

Marketplace calls unimplemented function

The marketplace contract calls a transferFrom function on a safe token library that does not implement it, so the mint and mintWithUnderlying functions always revert. An attacker cannot exploit this to steal funds, but users cannot use those functions.

Illuminate contest

Medium
Business logic

Checking yieldBearingToken against u instead of backingToken

The lend function for Tempus checks the yield-bearing token instead of the backing token, so it fails with the correct market. An attacker could not exploit this to steal funds, but it prevents legitimate lending.

Illuminate contest

Medium
Business logic

Principal types in Illuminate and Yield lending are mixed up

The lend() function in the Illuminate and Yield lending contracts mints the wrong principal token type to the user when a specific principal type is requested. An attacker could exploit this to receive a different token than intended, potentially causing downstream systems to miss expected yield or behave incorrectly.

Illuminate contest

Medium
Business logic

Swivel lend method doesn’t pull protocol fee from user

The Swivel lend method adds the order fee to the fees mapping but only pulls the lent amount from the user, not the fee. This causes withdrawFee to fail because it tries to transfer more tokens than the contract holds.

Illuminate contest

Medium