Hunt prep
Before you test Party Protocol
What 56 disclosed reports say about Party Protocol: 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 | 36 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| DoS lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| Crypto lesson | 1 | 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.
-
PartyGovernance.sol#accept - passThresholdBps isn’t cached for each proposal which can lead to problems if changed through another proposal
The pass threshold should be cached per proposal when the proposal is created, in the same way as totalVotingPower is cached.
Disclosed
-
PartyGovernanceNFT.sol#mint - User can delegate another users funds to themselves and brick them from changing the delegation
The project plans to update documentation to clarify that delegates are only for initial mints, rather than changing the mint function.
Disclosed
-
PartyGovernanceNFT#rageQuit() can lead to token loss for users when dealing with zero-balance ERC20 during a rageQuit()
The check should be performed even when the amount is zero by replacing `amount > 0` with `amount >= 0` in the `rageQuit()` function.
Disclosed
-
ETHCrowdfundBase.sol#processContribution - Impossible to finalize crowdfund because of minContribution check
The recommended mitigation is to disallow configurations where minContributions > maxTotalContributions - minTotalContributions, though the text suggests exploring other solutions.
Disclosed
-
Single host can unfairly skip veto period for proposal that does not have full host support
The contract should record host status in snapshots at the time a proposal is created, so that only hosts at that time can increment the acceptance count.
Disclosed
-
ETHCrowdfundBase.sol#_processContribution - Possible DoS on finalization of crowdfund under certain conditions
The initialisation check should enforce that minTotalContributions is strictly less than maxTotalContributions.
Disclosed
-
Some arbitrary proposal calls will fail because executeProposal() in ProposalExecutionEngine is not payable
The executeProposal function should be made payable.
Disclosed
-
PartyGovernanceNFT advertises but does not honor the ERC-4906 standard
The contract should emit MetadataUpdate in increaseVotingPower and decreaseVotingPower, and BatchMetadataUpdate in increaseTotalVotingPower and decreaseTotalVotingPower.
Disclosed
-
Rage quit modifications should be limited to provide stronger guarantees to party members
The contract should be changed so that rage quit cannot be disabled or reduced before the currently defined timestamp, for example by only allowing extensions or limiting reductions.
Disclosed
-
ReraiseETHCrowdfund.sol : Multiple scenarios how pending votes might not be claimable which is a complete loss of funds for a user
The report recommends adding back the funding fee when calculating contribution for claim checks, and also preventing the case where minContribution is bypassed for the last contributor; the sponsor confirmed a partial fix.
Disclosed
-
OperatorProposal.sol : Leftover ETH is not refunded to the msg.sender
The contract should refund any leftover ETH to the executor when allowOperatorsToSpendPartyEth is false, as shown in the suggested code change.
Disclosed
-
An attacker can contribute to the ETH crowdfund using a flash loan and control the party as he likes
The report recommended adding a cooldown period after crowdfund finalisation before distributions are allowed, but the party did not confirm a fix.
Disclosed
-
CollectionBatchBuyOperator.sol : tokenIds array is not shortened properly which makes execute function revert when not all NFTs are purchased successfully
The fix is to change the assembly to mstore(tokenIds, tokensBought) so the array length is correctly updated.
Disclosed
-
VetoProposal : proposals cannot be vetoed in all states in which it should be possible to veto proposals
The fix is to allow the voteToVeto function to be called when the proposal is in the Passed or Ready state as well.
Disclosed
-
Tokens with multiple entry points can lead to loss of funds in rageQuit()
The report suggests implementing a whitelist of supported tokens or taking a snapshot of balances before withdrawals and checking that balances remain unchanged to detect tokens with multiple entry points.
Disclosed