Hunt prep
Before you test Illuminate contest
What 29 disclosed reports say about Illuminate contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 20 | 0 | – | – | $0 |
| Access control lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Pendle Uses Wrong Return Value For swapExactTokensForTokens()
The amount of principal returned should be index 1 of the array returned by swapExactTokensForTokens().
Disclosed
-
Redeem Sense can be bricked
The contract should either use a whitelisted Sense address or redeem the Redeemer's entire principal balance instead of only the transferred amount.
Disclosed
-
ERC5095 redeem/withdraw does not update allowances
The contract should reduce the allowance when tokens are spent.
Disclosed
-
Able to mint any amount of PT
The protocol should validate the input addresses (y, x, pool) through a whitelisting procedure or verify that the returned amounts match the actual PT gained by checking balances before and after.
Disclosed
-
Unable to redeem from Notional
The Redeemer should call Notional's redeem function using the amount returned by maxRedeem as the shares input after calling maxRedeem.
Disclosed
-
sellPrincipalToken, buyPrincipalToken, sellUnderlying, buyUnderlying uses pool funds but pays msg.sender
The functions should use safetransfer to get funds from msg.sender rather than from the marketplace.
Disclosed
-
Centralisation Risk: Admin Can Change Important Variables To Steal Funds
The recommendation is to set all admin functions behind either a timelocked DAO or at least a timelocked multisig contract; the text does not state that this was implemented.
Disclosed
-
Lend method signature for illuminate does not track the accumulated fee
The Lend method should add the calculated fee to the fees mapping after each transaction, as the other lending methods do.
Disclosed
-
withdraw eToken before withdrawFee of eToken could render withdrawFee of eToken unfunctioning
The withdraw function should reset the fees mapping for the token after clearing the withdrawal record.
Disclosed
-
Leak of Value in yield function, slippage check is not effective
Add validation on the previewed amount (for example, reject zero or values below a threshold) or have a trusted keeper perform the swap with an explicit slippage parameter.
Disclosed
-
Lender.mint() May Take The Illuminate PT As Input Which Will Transfer And Mint More Illuminate PT Cause an Infinite Supply
The mint function should be changed to reject the case where the principal is the Illuminate principal token.
Disclosed
-
Easily bypassing admins ‘pause’ for swivel
The function should reject any principal other than the one it is meant to handle, as the report recommends.
Disclosed
-
Sandwich attacks are possible as there is no slippage control option in Marketplace and in Lender yield swaps
The five functions should accept a minimum accepted return argument and only succeed if the realised output meets it, so callers can control slippage.
Disclosed
-
Division Before Multiplication Can Lead To Zero Rounding Of Return Amount
The multiplication should be performed before the division so the intermediate value is not truncated to zero.
Disclosed
-
The lend function for tempus uses the wrong return value of depositAndFix
The code should be changed to use the second return value of depositAndFix and adjust the calculation accordingly.
Disclosed