The withdrawContribution function returns each user's original contribution, but after a failed migration the contract may hold a different amount of ETH and tokens. This can cause some users to be unable to withdraw and others to withdraw funds belonging to others.
Integer division in the buyout module rounds the fraction price down, so when the buyout price is close to the total supply the fraction price can become zero or half the intended value. An attacker can then buy fractions for free or at a large discount, and the proposer may lose their fractions for little or nothing.
A malicious proposer can start a buyout using a contract that cannot receive ERC1155 tokens. If the buyout fails, the end function reverts when trying to send tokens back, preventing any new buyout from starting.
The withdrawContribution function in Migration.sol refunds a user's ETH and fractional tokens without updating the proposal's totalEth and totalFractions, allowing an attacker to inflate their proposal's totals by repeatedly joining and withdrawing. This lets the attacker steal all ETH and fractional tokens from other proposals and take over the vault's NFTs.
The commit function in the Migration contract can be called multiple times for the same proposal if the buyout fails within the 7-day migration period. Combined with a separate flaw where the contract does not account for the actual number of fractions returned from a failed buyout, an attacker can repeatedly commit and steal ETH from the migration contract.
The vault's batch deposit functions let any caller specify an arbitrary source address, so anyone can pull tokens from a user who has granted the vault an allowance. An attacker could steal the user's remaining approved tokens and NFTs.
The migration proposal function did not check that the selectors and plugins arrays had equal lengths. If a proposal was created with more selectors than plugins, the subsequent vault installation would revert with an out-of-bounds error, preventing a new vault from being created and permanently locking assets in the old vault.
A failed migration proposal could still be settled after a different successful buyout, allowing the failed proposer to withdraw all vault tokens. An attacker could exploit this to steal assets from a legitimate proposer.
The mint function updates totalSupply after an external call to the recipient, allowing a malicious contract to call redeem during the callback and set the buyout state to SUCCESS before totalSupply is updated. The attacker can then sell fractions and withdraw assets from the vault at any time.
The Buyout module stores a fraction price calculated from the total supply at the moment a buyout starts, and keeps using that stored price for later buys and sells even if the total supply changes. An attacker could inflate the supply during a live buyout and then sell a small share of the new supply to drain the buyout pool while keeping most of the vault.
The contract uses payable.transfer() to send Ether, which only forwards 2300 gas and can fail if the recipient is a contract with a costly fallback or a proxy. This can lock user funds because there is no alternative withdrawal address.
The shared implementation contract behind every vault proxy was left uninitialised, so anyone could become its owner and destroy it with a selfdestruct call. That would make every vault proxy unusable and permanently lock all assets held in them.
The migration contract allows the new total supply to be set arbitrarily low, so when shares are calculated for contributors, rounding down can zero out minority shareholders' shares. An attacker or careless majority could set a very low new supply, causing minority contributors to lose their entire contribution when the migration is committed and a buyout starts.
A vault owner can overwrite an existing plugin selector with a new implementation, allowing them to frontrun a user's call and change the logic executed. This can also cause confusion when multiple plugins with the same selector are installed, as only the last one remains active.
The migration module's commit function updates state after making external calls, allowing a malicious ERC1155 token to reenter and drain ETH. An attacker could repeatedly reenter to steal funds from the migration module.
A vault owner could also become the controller of the fractional token contract by deploying through a different registry function, letting them set uncapped secondary-market royalties. They could then front-run a large sale, raise royalties to 100%, and take the whole payment.
A migration proposal's contributed funds can become permanently stuck if another party starts a buyout auction on the same vault. The migration contract's leave and withdraw functions only check the buyout state, not whether the buyout was initiated by the migration contract itself, so contributors cannot withdraw once the buyout is active or successful.
The migrateFractions function in the Migration contract did not record that a user had already migrated, so the same user could call it repeatedly and receive new vault tokens more than once. This drained the contract's token balance, leaving later users unable to claim the tokens they were owed.
The FERC1155 contract implements the EIP-2981 royalty getter but does not register the ERC2981 interface in its ERC-165 supportsInterface function. As a result, external marketplaces that check interface support cannot detect that the NFT supports royalties, so royalty enforcement may fail.
The Buyout.cash function calculates each user's share using the initial Ether balance instead of the remaining balance, so later users can withdraw more Ether than they are entitled to. An attacker could drain Ether from the Buyout contract by cashing out multiple wallets.
The leave function does not check whether a proposal has been committed, so a user can call it after a failed committed proposal and receive their original contribution instead of the adjusted amount from the buyout auction. This can cause a deficit and loss of assets for other users.
When all token holders join a migration proposal, the total fractions equal the total supply, causing a division by zero in the _calculateTotal function. This prevents the migration from proceeding, whereas a buyout in the same situation would not make sense.
The vault's fallback function allows calls to installed plugins without checking caller permissions, unlike the execute function. An attacker who is a previous owner or installs a malicious plugin can use this to transfer NFTs out of the vault without the current owner's consent.
A user can start a buyout with as little as 1 wei, and while that buyout is active no one else can start another buyout on the same vault. An attacker can therefore block legitimate buyouts for up to 4 days at negligible cost.
A proposer can start a buyout from a malicious contract that re-enters the start function when it receives ETH, making the buyout state permanently live. This prevents the buyout from ending and blocks any new buyout proposals, locking assets in the vault.
The Migration contract's buyout start takes all fractions held by the contract, not just those from the specific proposal. An attacker can start a competing proposal with zero fractions, commit it, and then buy out the victim's deposited fractions for free.
The Migration contract did not verify that the user-supplied proposalId and vault matched the actual vault for that proposal. An attacker could join a proposal with a worthless token from a different vault, then leave using the original vault to withdraw valuable tokens.
The Buyout contract's end function checks the contract's fraction token balance to decide if a buyout succeeded, without distinguishing tokens deposited through the intended sellFractions function from tokens sent directly. An attacker could start a buyout with almost no tokens, then transfer enough fraction tokens directly to the contract just before calling end, so the buyout is treated as successful and the attacker acquires the NFTs for far less than their value.
FV
Fractional v2 contest
High
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.