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.
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.
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.
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.
The redeem function in Redeemer.sol is public and can be called by anyone before maturity. For protocols like Notional that allow early redemption, this forces a discounted sale of the protocol's holdings, causing fund loss to stakeholders.
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.
Four unpermissioned functions in the marketplace use pool funds to complete trades but send the resulting tokens to the caller. An attacker could call these functions to steal the resulting funds, though the judge noted it is unclear how funds would end up in the contract during normal operation.
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.
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.
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.
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.
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.
The Lender.mint() function allows the principal token to be the same as the Illuminate PT, so a user can transfer Illuminate PT to the contract and receive an equal amount of newly minted Illuminate PT. This can be repeated indefinitely, inflating the supply and leaving extra tokens in the Lender contract.
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.
The Marketplace swap functions and Lender's yield function perform token swaps without any slippage control, so trades can execute at a manipulated price. An attacker could sandwich these swaps to cause the victim to receive fewer tokens than the market rate.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
IC
Illuminate contest
Medium
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.