Closed howlbot-integration[bot] closed 1 month ago
This is documented in the Known Issues page.
These withdrawals are not given special treatment because we don't want sanctioned accounts to receive withdrawal priority over non-sanctioned accounts.
Known issue as per sponsor's comment
3docSec marked the issue as unsatisfactory: Out of scope
Lines of code
https://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarketConfig.sol#L82-L88
Vulnerability details
Impact
The borrower of the market might not be able to force the sanctioned lender into a withdrawal request.
Proof of Concept
When a borrower creates a market hooked by a fixed-term hook, all lenders are prohibited from withdrawing their assets from the market before the fixed-term time has elapsed. If a lender is marked as sanctioned, anyone can call [
WildcatMarketConfig#nukeFromOrbit()
]() to force it into a withdrawal request. However, the call might revert iffixedTermEndTime
has not yet elapsed.Copy below codes to WildcatMarket.t.sol and run forge test --match-test test_nukeFromOrbit_BeforeFixedTermExpired:
Tools Used
Manual review
Recommended Mitigation Steps
No any restriction should be imposed when
WildcatMarketConfig#nukeFromOrbit()
is called to force the sanctioned lender into a withdrawal request: https://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarket.solhttps://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarketWithdrawals.sol:
Assessed type
Context