Closed code423n4 closed 1 year ago
0xean marked the issue as primary issue
chechu marked the issue as sponsor disputed
The max limit of borrowRate is checked here: https://github.com/code-423n4/2023-05-venus/blob/main/contracts/VToken.sol#L696
0xean marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Comptroller.sol#L324
Vulnerability details
Impact
The VToken contract has
borrowRateMaxMantissa
, which is used to control the upper limit of borrowRate. But this value is not checked when borrowing. This will cause the borrowRate to be higher than the expected value set by the contract, and will cause the borrow rate to be higher than the expected value.Proof of Concept
The attacker borrowed a large number of vTokens, causing the
borrowRateMantissa
to exceed the limit.Tools Used
manual
Recommended Mitigation Steps
check
borrowRateMantissa
when borrowingAssessed type
Invalid Validation