Hunt prep
Before you test Fractional v2 contest
What 32 disclosed reports say about Fractional v2 contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 16 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Migration::withdrawContribution falsely assumes that user should get exactly his original contribution back
A callback from Buyout to Migration on a failed proposal should update the proposal with the actual amounts received, so withdrawals reflect each user's share.
Disclosed
-
Division rounding can make fraction-price lower than intended (down to zero)
The buyout price should be calculated as fractionPrice * totalSupply, with the user specifying the fraction price, or the buy/sell price should be derived from the buyout price at transaction time.
Disclosed
-
Forced buyouts can be performed by malicious buyers
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.
Disclosed
-
Steal NFTs from a Vault, and ETH + Fractional tokens from users.
The withdrawContribution function should update the proposal's totalEth and totalFractions when refunding a user.
Disclosed
-
Failed proposal can be committed again
Change the length of either the migration period or the buyout period so that a proposal cannot be replayed.
Disclosed
-
Malicious Users Can Exploit Residual Allowance To Steal Assets
The functions should be changed to pull tokens only from `msg.sender` by removing the `_from` parameter.
Disclosed
-
Migration can permanently fail if user specifies different lengths for selectors and plugins
A check should be added in propose() to ensure the selectors and plugins arrays have equal length, and optionally a similar check in install().
Disclosed
-
Proposal which started buyout which fails is able to settle migration as if its buyout succeeded.
The contract should track the currently active proposal and only allow settleVault for that proposal, also checking that the buyout's proposer is the Migration contract.
Disclosed
-
Buyout Module: redeem ing before the update of totalSupply will make buyout’s current state success
Update totalSupply before calling _mint.
Disclosed
-
[Buyout module] Fraction price is not updated when total supply changes
The fraction price should be recalculated from the current total supply at buy/sell time, or the call should revert when the supply has changed, with a way to update the recorded supply and emit an event.
Disclosed
-
Use of payable.transfer() may lock user funds
Use address.call{value:x}() instead of payable.transfer().
Disclosed
-
Vault implementation can be destroyed leading to loss of all assets
Initialise the implementation in the Vault constructor (or in the factory constructor) so its owner slot is already taken.
Disclosed
-
Migration total supply reduction can be used to remove minority shareholders
The migration should require that the new total supply is greater than the old one.
Disclosed
-
A vault owner can frontrun a plugin call and change its implementation
The report recommends checking that the selector is not already in use before installation and considering a timelock for plugin installations.
Disclosed
-
Migration Module: Re-enter commit using custom token
The commit function should follow the checks-effects-interactions pattern by setting state variables before external calls, and a reentrancy guard should be considered.
Disclosed