Deposits of underlying borrow token via multicall can go above the cap #332
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-238
🤖_11_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-06-size/blob/main/src/libraries/Multicall.sol#L26-L44
Vulnerability details
Impact
The identified bug allows users to bypass the underlying borrow token (USDC) deposit cap when depositing via multicall. This can lead to an uncontrolled inflow of tokens into the protocol.
Proof of Concept
Tools Used
Manual Review, Foundry
Recommended Mitigation Steps
Consider changing the following lines in Multicall.sol#L26-45.
Assessed type
Error
The text was updated successfully, but these errors were encountered: