Forced buyouts can be performed by malicious buyers
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.
Submitted by cccz
In the end function of the Buyout contract, when the buyout fails, ERC1155 tokens are sent to the proposer. A malicious proposer can start a buyout using a contract that cannot receive ERC1155 tokens, and if the buyout fails, the end function fails because it cannot send ERC1155 tokens to the proposer. This prevents a new buyout from being started.
Proof of Concept
Recommended Mitigation Steps
Consider saving the status of the proposer after a failed buyout and implementing functions to allow the proposer to withdraw the ERC1155 tokens and eth.
Ferret-san (Fractional) confirmed
HardlyDifficult (judge) commented:
The 1155 receiver can prevent a failed buyout from ending, which prevents a new one from starting. Agree with severity.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The end function sends ERC1155 tokens to the proposer without handling the case where the proposer cannot receive them, causing a revert that blocks future buyouts.
Impact
A malicious proposer can permanently block new buyouts from being started, causing a denial of service.
What the attacker needed
Attacker can start a buyout; attacker uses a contract that rejects ERC1155
The fix
The contract should save the proposer's status after a failed buyout and provide a function for the proposer to withdraw the ERC1155 tokens and ETH.
How it was found
- A malicious proposer starts a buyout using a contract that cannot receive ERC1155 tokens.
- The buyout fails.
- The end function tries to send ERC1155 tokens to the proposer and reverts.
- No new buyout can be started.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A buyout is a process where someone offers to buy all shares of a fractionally owned item. If the buyout fails, the system tries to return some tokens to the person who started it. But if that person is a contract that refuses to accept tokens, the return fails and the whole buyout process gets stuck, blocking anyone else from trying again.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.