50461 sc insight incorrect deposit event receiver logged in bridge functions of dexaggregatorwrapperwithpredicateproxy sol
Description
Brief / Intro
Vulnerability Details
function _calcSharesAndEmitEvent(
ERC20 supportedAsset,
CrossChainTellerBase teller,
address fromToken,
uint256 fromTokenAmount,
uint256 supportedAssetAmount
) internal {
...
uint256 shares = supportedAssetAmount.mulDivDown(
10 ** teller.vault().decimals(),
AccountantWithRateProviders(teller.accountant()).getRateInQuoteSafe(supportedAsset)
);
emit Deposit(
fromToken, // depositAsset
msg.sender, // ← incorrect when bridging
address(supportedAsset),
fromTokenAmount,
supportedAssetAmount,
shares,
address(teller),
address(teller.vault())
);
}Impact Details
Fix
References
Proof of Concept
Previous51777 sc medium denial of service on depositandbridge function for sharelockperiod is non zeroNext49919 sc insight unstake function does not unstake all as mentioned in the natspec
Was this helpful?