If wLP is blacklisted, then user will not be able to withdraw it
A whitelisted wLP token used as collateral can later be blacklisted by the governor, and the withdrawal function then rejects it, so users cannot withdraw their deposited wLP. The same check in the liquidation function could also block liquidators, though the sponsor's planned blacklisting flow reduces that risk.
rvierdiiev Follow with ladboy233 and 0x73696d616f
Originally disclosed on Code4rena
Submitted by rvierdiiev, also found by ladboy233 and 0x73696d616f
When users deposit wLP tokens as collateral, then they are checked to be whitelisted.
Later, it’s possible that for some reason wLP token will be blacklisted by governor. And once it’s done, then users who already used that wLP token as collateral will not be able to withdraw them.
Also same thing exists for the liquidateWLp function, which means that in case if position, that is collateralized with wLP that is blacklisted, will become unhealthy, then liquidators will not be able to liquidate it.
Sponsor said that blacklisting flow will be as following.
- Decrease collateral factor for blacklisted wLp until it becomes 0
- then blacklist wLp
Considering this fact I realize that for liquidation this will not be an issue as wLp will have 0 collateralization power when it will be blacklisted. However it’s still possible that some users will not decollateralize their wLp tokens yet for some reasom and thus they will not be able to withdraw them later.
Impact
User can’t withdraw previously deposited wLP tokens after they were blacklisted.
Tools Used
VsCode
Recommended Mitigation Steps
Even if wLP token is blacklisted now, you still should allow user to withdraw them. After all you have health check function that will guarantee that position has enough collateral.
fez-init (INIT) acknowledged and commented:
We will use unwhitelisting with care.
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 withdrawal and liquidation functions require the wLP token to be whitelisted, so a later blacklisting blocks users from retrieving collateral they already deposited.
Impact
Users cannot withdraw previously deposited wLP tokens after blacklisting; liquidation may also be blocked, though the sponsor's plan to reduce collateral factor to zero first limits that risk.
What the attacker needed
User has deposited wLP as collateral; governor blacklists that wLP token
The fix
The withdrawal function should allow users to withdraw blacklisted wLP tokens, relying on the health check to ensure the position remains sufficiently collateralised.
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.
A user deposits a special token (wLP) as collateral. Later, an administrator marks that token as no longer allowed. The withdrawal code checks that the token is still allowed, so the user is stuck and cannot get their token back.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.