Business logic
The shareChange() function in vToken.sol calculates new shares incorrectly when the total supply equals the old shares, resulting in zero new shares. An attacker could potentially exploit this to receive fewer vTokens than deserved, causing a loss of funds.
Business logic
The contract's addValue function assumes the received amount equals the transfer amount, but fee-on-transfer tokens reduce the actual received amount. An attacker could exploit this to cause incorrect attribution calculations and balance discrepancies.
Business logic
The initialize function in three index contracts can be called multiple times with the same asset, causing duplicate entries in the assets list. Any function reading the assets list would then retrieve duplicate assets.
Access control
The addAsset function allows an asset manager to change the price aggregator for an existing asset, which affects all functions using that asset. An attacker with the asset manager role could replace the aggregator with a malicious one, potentially manipulating prices.
Business logic
The reweight function in ManagedIndexReweightingLogic.sol checks the length of the updated asset list against the maximum allowed components, but this list includes assets to be removed, so the check can fail even when the final asset count would be within the limit. This causes the transaction to revert, preventing the asset list from being changed.
Business logic
The minting logic excludes assets with the SKIPPED_ASSET_ROLE from deposit checks, but the burning logic only skips them when a separate blacklist flag is set. An attacker could repeatedly deposit and withdraw to drain any skipped asset held by the index without ever depositing it.
Audit finding
The Chainlink price oracle contract reads the latest round data without checking whether the returned price is stale or from an incomplete round. An attacker could exploit stale or incorrect prices to manipulate the protocol's valuation of assets.
Access control
The ORDERER_ROLE role allows arbitrary transfer of user funds and is also required for rebalancing indices. A malicious manager with this role could steal user funds.
Smart contracts
The oracle contract calls a Uniswap library function that relies on arithmetic overflow, but the project compiles it with Solidity 0.8 or later, where overflow reverts. When the cumulative price values grow large enough, the call reverts and breaks the oracle and anything depending on it.
Business logic
The mint function in IndexLogic allows an attacker to mint tokens for themselves by monitoring the vToken contract's asset balance and calling mint when the balance exceeds lastBalance, without transferring their own assets. This lets the attacker take tokens backed by other users' deposits.