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.
Originally disclosed on Code4rena
Submitted by kirk-baird, also found by 0xDjango, Alex the Entreprenerd, kenzo, Kumpa, pashov, shenwilly, tintin, and unforgiven
Impact
There are numerous methods that the admin could apply to rug pull the protocol and take all user funds.
-
Lender.approve()- Both the functions on lines #78 and #107.
- Admin can approve any token for an arbitrary address and transfer tokens out.
-
Lender.setFee()- Does not have an lower limit.
feeNominator = 1implies 100% of amount is taken as fees.
-
Lender.withdraw()- Allows withdrawing any arbitrary ERC20 token
- 3 Days is insufficient time for users to withdraw funds in the case of a rugpull.
-
MarketPlace.setPrincipal()- Use (u, m, 0) -> to be an existing Illuminate PT from another market
- Then set (u, m, 1) -> to be some malcious admin created ERC20 token to which they have infinite supply
- Then call
Lender.mint()for `(u, m, 1) and later redeem these tokens on the original market
Recommended Mitigation Steps
Without significant redesign it is not possible to avoid the admin being able to rug pull the protocol.
As a result the recommendation is to set all admin functions behind either a timelocked DAO or at least a timelocked multisig contract.
sourabhmarathe (Illuminate) marked as duplicate:
Duplicate of #390.
Input sanitization and centralization is out-of-scope in this contest, however, the arbitrary approval violated.
The admin must not be able to withdraw more fees than what he is entitled to and fee calculation is correct.
sourabhmarathe (Illuminate) disputed and commented:
This was not considered part of our threat model. As the remediation suggested, the
adminaddress will be DAO-locked behind a multisig. As a result, we do not consider this to be an issue.
JTraversa (Illuminate) commented:
As an additional comment, we understand that multisigs are not a solution for decentralization, but feel strongly that certain centralization is necessary for nascent lending protocols when their integration platform is so large (8 integrations, each of them integrating 3-4 money markets).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root cause is that critical administrative functions (such as approving token transfers, setting fees, and withdrawing tokens) are not protected by a timelock or decentralised governance, giving a single admin the power to drain funds.
What the attacker needed
Admin is malicious or compromised; admin functions are not timelocked
The fix
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.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In many blockchain projects, a special admin account can change settings or move funds. This report says that if that admin is malicious or compromised, they could take all the money users have put into the protocol. The author suggests locking admin actions behind a delay (timelock) or a decentralised group (DAO) so users have time to react.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.