You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abitrary/large data can be passed into function getSupplyCollateralCalldata
Summary
The type and size of data required for function getSupplyCollateralCalldata was not specified. As it is an external function, malicious actors can try pass, malicious data such an attack contract byte data to break or re-enter the code.
Large, meaningless data can also be passed by malicous actors, overloading the system, incuring gas cost and
causing griefing attacks or DOS
Use a re-entrant modifier from tested contracts like openzeppelin contracts
The text was updated successfully, but these errors were encountered:
sherlock-admin2
changed the title
Sparkly Fleece Mammoth - abitrary/large data can be passed into function getSupplyCollateralCalldata
momo - abitrary/large data can be passed into function getSupplyCollateralCalldata
Oct 28, 2024
momo
High
abitrary/large data can be passed into function getSupplyCollateralCalldata
Summary
The type and size of data required for
function getSupplyCollateralCalldata
was not specified. As it is an external function, malicious actors can try pass, malicious data such an attack contract byte data to break or re-enter the code.Large, meaningless data can also be passed by malicous actors, overloading the system, incuring gas cost and
causing griefing attacks or DOS
https://github.com/sherlock-audit/2024-10-morpho-x-index/blob/main/index-protocol/contracts/protocol/integration/lib/Morpho.sol#L40
Attack Path
function getSupplyCollateralCalldata
which calls back intofunction invokeSupplyCollateral
which at the end of this function IsetToken is invokedhttps://github.com/sherlock-audit/2024-10-morpho-x-index/blob/main/index-protocol/contracts/protocol/integration/lib/Morpho.sol#L74
Impact
No response
PoC
No response
Mitigation
The text was updated successfully, but these errors were encountered: