A whitelisted user could call lowerHasMinted() to reduce their recorded minted total, then mint more AlTokens than their assigned ceiling. This allowed them to mint an unlimited number of tokens within the total supply.
The contracts assume meta pool tokens always have 18 decimals when calculating minting slippage, but the token decimals are not controlled. If a meta token has different decimals, minting can become impossible or slippage protection can be bypassed, potentially causing fund loss.
The contract's internal approve function sets a token allowance directly to the maximum value without first resetting it to zero. For tokens like USDT that require a zero allowance before changing a non-zero one, the approval call would fail, potentially blocking the contract's operations.
Several upgradeable contracts lack a storage gap, so if a base contract is later upgraded to add a new state variable, it could overwrite a variable in a child contract. This could cause loss of user funds or make the contract malfunction completely.
The Lido adapter's price function returns the value of WstETH in terms of stETH, not the desired underlying WETH. This incorrect price can over- or understate the harvestable amount, leading to value leakage.
The mint limit in AlchemistV2 is only decreased on mint and not increased on burn, so an attacker can repeatedly mint and burn to keep the limit exhausted. This prevents other users from minting synthetic tokens, disrupting the protocol.
The setAlchemist function does not check for open positions with the old Alchemist before switching to a new one. If an admin changes the Alchemist while funds remain deposited, those funds become frozen and require manual recovery.
The wrap and unwrap functions in the Fuse token adapter incorrectly compare the return value of mint and redeem against a zero error code, but those functions return the amount minted or redeemed. This causes the functions to revert even when the operation succeeds, making the adapter unusable.
The TransmuterBuffer contract's _alchemistWithdraw function uses a hard-coded 1% slippage tolerance, which can cause users to lose up to 1% of their funds without consent when there are insufficient shares, or make withdrawals impossible when market conditions require a larger slippage. This leads to either modest user fund loss or temporary freezing of funds.
The repay function converts any accepted underlying token to debt at a fixed 1:1 ratio regardless of its market price, so a depegged token can repay the same nominal debt for less real value. An arbitrageur could mint alToken, buy the cheap depegged token, repay debt with it, withdraw collateral and sell the leftover alToken for profit, pushing the alToken price down to the depegged token's price.
If the total shares of a yield token become zero while pending credit remains, several functions revert due to division by zero, locking the contract and permanently trapping the pending credit. An attacker could front-run the first deposit to cause this state, but the impact is limited to a denial of service.
The YearnTokenAdapter contract hardcodes a maximum loss of 100% when withdrawing from a Yearn vault, meaning there is no slippage check. An attacker could exploit this by manipulating the vault's share price to cause a loss of funds for users withdrawing through the adapter.
The YearnTokenAdapter's wrap function uses a single-step approval for an arbitrary underlying token. If the token requires the allowance to be zero before setting a new positive value, and a leftover approval exists, the wrap function becomes permanently stuck.
The gALCX contract's bumpExchangeRate function divides by totalSupply without checking for zero, so if an attacker sends ALCX tokens directly to the contract while totalSupply is zero, the function reverts. This makes stake, unstake, and migrateSource unusable, effectively denying service to legitimate users.
The TransmuterBuffer contract calls depositUnderlying with a minimum output of zero, so any amount of slippage is accepted. If the buffer is invoked at an unfavourable time, a large portion of the deposited funds could be lost to slippage.
The TransmuterBuffer contract's refreshStrategies function requires its registeredUnderlyings array to match the Alchemist's supportedUnderlyingTokens. Since registerAsset can only add to this array and there is no way to remove entries, if an extra asset is registered or the Alchemist is switched to one with fewer assets, refreshStrategies becomes permanently blocked, disabling the contract.
The first depositor of a new gALCX contract can make a tiny stake and then directly transfer a large amount of ALCX to inflate the exchange rate, causing later depositors' shares to be rounded down and their funds captured by the attacker. This allows the attacker to steal a portion of subsequent deposits.
AC
Alchemix 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.