The vault's deposit and sponsor functions check that the vault's balance increases by exactly the transferred amount after a safeTransferFrom. If the underlying token charges a fee on transfer, the balance increase is smaller, so the check fails and the function reverts, making deposits and sponsorships impossible.
Any single trusted account can remove all other trusted accounts from the isTrusted mapping, effectively taking over the trusted group that controls all restricted functions in the parent contract. This could lead to loss of funds if a trusted account becomes malicious or is compromised.
The vault's setStrategy function requires the strategy to have zero invested assets, but anyone can send a tiny amount of aUST to the strategy, making investedAssets non-zero and preventing the strategy from being replaced. An attacker could repeatedly grief the protocol by sending 1 wei of aUST, forcing the protocol to redeem and wait, and since EthAnchor does not accept redeems below 10 aUST, the protocol would need to add more funds to redeem the griefer's dust.
The vault's totalUnderlying() figure counts assets that have been invested and are not held in the contract balance, so withdrawals, yield claims and unsponsoring can try to transfer more than the contract actually holds. A forced unsponsor would always fail for this reason, and in stressed conditions users could be unable to retrieve funds.
The contract requires trusted key holders to call a function to initiate withdrawals from EthAnchor, so if those key holders lose access to their keys, user funds invested in EthAnchor become frozen. An attacker cannot directly exploit this, but the centralization risk means funds could be permanently locked under certain conditions.
The NonUSTStrategy contract swaps deposited assets into UST but does not charge the swap fee to the depositor, instead spreading it across all vault users. An attacker can provide most of the liquidity in the swap pool, deposit a large amount to generate fees, and then withdraw, capturing the majority of the fees paid by other users.
When the underlying EthAnchor strategy suffers investment losses, the vault's share price calculation causes later depositors to receive more shares than they should, diluting earlier depositors and potentially causing the last users to lose all their funds.
The sponsor() function in Vault.sol lacks a reentrancy guard and calls depositors.mint() before updating state, allowing an attacker to reenter and call mint() multiple times while the totalSponsored amount is only updated once.
The deposit() function in Vault.sol calls external NFT minting functions that trigger a callback to the sender, allowing reentrancy before execution completes. An attacker could mint multiple NFTs for themselves and manipulate state variables like newShares or enter other functions such as withdraw.
The NonUSTStrategy contract uses a Curve pool's spot exchange rate to value assets, which can be manipulated by a flash loan. An attacker could take a flash loan, swap a large amount to skew the pool's rate, then deposit or withdraw from the vault at favourable terms and profit.
A reentrancy vulnerability in the vault's withdraw function allows an attacker to deposit during the callback and receive more UST than they should. The attacker can withdraw significantly more than their fair share.
The forceUnsponsor function can transfer all underlying tokens to a sponsor even when other depositors exist, leaving the vault with a tiny balance. An attacker can then deposit a small amount to receive an extremely large number of shares, which can later freeze user funds when deposit or withdraw amounts reach a certain value.
The function totalUnderlyingMinusSponsored() subtracts totalSponsored from totalUnderlying without checking for underflow. If totalSponsored exceeds totalUnderlying, the subtraction reverts, causing any function that calls it, such as deposit(), to fail.
The strategy contracts do not account for tokens whose balances change during transfers or over time, such as rebasing, deflationary, or inflationary tokens. This could lead to a loss of funds because the contract's internal accounting may not match the actual token balance.
The Vault contract's deposit function mints NFTs to claimers using a plain mint call rather than a safe mint, so a recipient contract that cannot handle NFTs may not be checked. The report argues this could leave users unprotected, though the text does not demonstrate a concrete exploit.
The vault's minimum lock period could be set to zero, and the strategy used a manipulatable spot price from a Curve pool. An attacker could use a flash loan to manipulate the pool price, deposit funds to receive more shares than deserved, then withdraw for a profit.
The smart contract functions claimYield, _withdraw, and _unsponsor do not check that the recipient address _to is not the zero address. An attacker could accidentally or intentionally send funds to the zero address, causing permanent loss of assets.
The investedAssets() function does not subtract the performance fee that would be charged when strategy assets are withdrawn. An attacker could withdraw before fees are charged and re-enter after, avoiding their share of the performance fee.
The BaseStrategy contract lacks a setter to update the exchangeRateFeeder address, which EthAnchor documentation says may change. If the address changes, the strategy would use an outdated feeder, leading to inaccurate calculation of the vault's total invested assets.
SC
Sandclock contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.