Attacker can exploit Global Limit mechanism to invalidate other users transaction. #286
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-435
🤖_182_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-03-revert-lend/blob/435b054f9ad2404173f36f0f74a5096c894b12b7/src/V3Vault.sol#L550
https://github.com/code-423n4/2024-03-revert-lend/blob/435b054f9ad2404173f36f0f74a5096c894b12b7/src/V3Vault.sol#L572
https://github.com/code-423n4/2024-03-revert-lend/blob/435b054f9ad2404173f36f0f74a5096c894b12b7/src/V3Vault.sol#L877
https://github.com/code-423n4/2024-03-revert-lend/blob/435b054f9ad2404173f36f0f74a5096c894b12b7/src/V3Vault.sol#L907
Vulnerability details
Background
RevertLend has implemented a global limit on both lending and borrowing, restricting the total amount that can be borrowed and lent in the protocol.
Vulnerability
The problem here is that anyone can exploit the above mechanism to invalidate normal users' transactions.
Consider the following steps:
Impact
Proof of Concept
V3Vault.t.sol
file and run it with via "forge test --mt testDOSviaGloablLendLimit -vv"Tools Used
Manual Review
Recommended Mitigation Steps
Assessed type
DoS
The text was updated successfully, but these errors were encountered: