Closed howlbot-integration[bot] closed 1 month ago
The summary here contradicts itself:
stETH is known for having an issue on transfer ERC20 Token Behaviors In Scope set tokens where balance changes outside of transfers as In scope, which correspond to stETH
Notwithstanding that this finding literally involves a balance change relating to transfers (intentional or not), the repo specification points out that Creating markets for rebasing tokens breaks the underlying interest rate model
in the Scoping Q&A, so stETH is out of scope anyway.
Looking at the finding the behavior is consistent with the fee-on-transfer, not rebasing, behavior - and the former is out of scope.
3docSec marked the issue as unsatisfactory: Out of scope
Lines of code
https://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarket.sol#L188-L188 https://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarketBase.sol#L541-L542
Vulnerability details
Summary
stETH
is known for having an issue on transfer, causing the recipient to sometimes receive 1-2 wei less than expected. Thus, it is possible that the transfered amount inrepayDeliquentDebt
will not be sufficient to make the market non delinquent as expected by the call.ERC20 Token Behaviors In Scope
set tokens wherebalance changes outside of transfers
asIn scope
, which correspond tostETH
Vulnerability details
repayDeliquentDebt
calculate thedelinquentDebt
as exactly the difference between thetotalAssets()
and theliquidityRequired()
, which define if the market is delinquentThen
amount = delinquentDebt
is transfered from the caller to the market:So, if the market receives 1-2 wei less than exepected, the
liquidityRequired
will still be greater thantotalAssets()
and the market will still be delinquentImpact
Function not working as expected for stETH. This will cause the market to still accrue delinquency fees, causing a loss for the borrower.
Tools Used
Manual review
Recommended Mitigation Steps
There are multiple ways to solve this :
Assessed type
ERC20