Skip to content

Code4rena

Party Protocol

Every publicly disclosed report for Party Protocol and what kind of bugs they were.

disclosed reports
56
most reported class
Business logic
bug classes found
6
first disclosure
2022
Find Party Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Party Protocol chose to make public.

Access control

Single host can unfairly skip veto period for proposal that does not have full host support

A single host could accept a proposal, transfer host status to another wallet they control, and accept again, repeating until the number of host acceptances equals the total number of hosts. This would skip the veto period even though not all hosts had accepted, allowing a malicious proposal to be executed without delay.

Party Protocol

High
Business logic

PartyGovernance.sol#accept - passThresholdBps isn’t cached for each proposal which can lead to problems if changed through another proposal

The governance contract uses the current global pass threshold when checking if a proposal has passed, rather than the threshold that was in effect when the proposal was created. An attacker could change the threshold through a separate proposal to make an unpopular proposal pass or to block a popular one.

Party Protocol

Medium
Business logic

ETHCrowdfundBase.sol#processContribution - Impossible to finalize crowdfund because of minContribution check

A crowdfund contract enforces a minimum contribution amount, but when the minimum contribution exceeds the gap between the maximum and minimum total contribution goals, contributions that would push the total over the maximum are refunded down to an amount below the minimum, causing a revert. This makes it impossible to reach either the minimum or maximum total, so the crowdfund cannot be finalised early and remains stuck until expiry.

Party Protocol

Medium
DoS

ETHCrowdfundBase.sol#_processContribution - Possible DoS on finalization of crowdfund under certain conditions

A crowdfund contract allows minTotalContributions to equal maxTotalContributions, and with a low exchange rate, a malicious user can contribute just below the maximum, causing the next contribution to be refunded down to 1 wei and then revert due to zero voting power. This blocks finalisation of the crowdfund until its duration ends, locking funds.

Party Protocol

Medium
Business logic

PartyGovernanceNFT#rageQuit() can lead to token loss for users when dealing with zero-balance ERC20 during a rageQuit()

The rageQuit function in PartyGovernanceNFT skips the minimum withdrawal amount check when the calculated withdrawal amount for an ERC20 token is zero, allowing users to burn their Party tokens without receiving any tokens in return. An attacker could exploit this by ensuring the Party's balance of a token is zero before a user calls rageQuit, causing the user to lose their tokens.

Party Protocol

Medium
Smart contracts

PartyGovernanceNFT advertises but does not honor the ERC-4906 standard

The PartyGovernanceNFT contract claims to support ERC-4906 but does not emit the required MetadataUpdate or BatchMetadataUpdate events when voting power changes, which alters the NFT metadata. As a result, off-chain platforms like marketplaces or block explorers may display stale metadata, potentially allowing tokens to be sold at inflated prices.

Party Protocol

Medium
DoS

Possible DOS attack using dust in ReraiseETHCrowdfund._contribute()

A frontrunner can contribute a tiny amount on behalf of an honest user, minting their crowdfund NFT while their voting power remains zero. When the honest user later contributes, the contract tries to mint the NFT again and reverts, blocking their contribution.

Party Protocol

Medium
Business logic

An attacker can contribute to the ETH crowdfund using a flash loan and control the party as he likes

The ETH crowdfund contract allowed an attacker to use a flash loan to contribute a large amount just before finalisation, gaining majority voting power, and then immediately distribute the party's funds to repay the loan and retain control. This was possible because the party could distribute funds in the same block as finalisation, with no delay.

Party Protocol

High
Business logic

OperatorProposal.sol : Leftover ETH is not refunded to the msg.sender

The OperatorProposal contract sends ETH to an operator contract but does not refund any leftover ETH to the executor who provided it. An attacker (or any executor) could lose funds because the remaining ETH is effectively transferred to the Party.

Party Protocol

Medium
Smart contracts

CollectionBatchBuyOperator.sol : tokenIds array is not shortened properly which makes execute function revert when not all NFTs are purchased successfully

The CollectionBatchBuyOperator contract incorrectly shortens the tokenIds array after partial NFT purchases, causing the execute function to revert when not all purchases succeed. An attacker could exploit this to prevent proposal execution, though the text does not specify an attacker model.

Party Protocol

Medium
Business logic

Tokens with multiple entry points can lead to loss of funds in rageQuit()

The rageQuit() function in PartyGovernanceNFT.sol allows a party member to withdraw their share of tokens by passing an array of token addresses. If a token has multiple entry points (i.e., multiple addresses representing the same underlying token), an attacker can include all addresses in the array to withdraw more than their fair share, leading to loss of funds for other party members.

Party Protocol

Medium
Business logic

InitialETHCrowdfund + ReraiseETHCrowdfund : batchContributeFor function may not refund ETH which leads to loss of funds

The batchContributeFor function in InitialETHCrowdfund and ReraiseETHCrowdfund deducts each contribution amount from the available ETH before attempting the contribution, and when a contribution fails with revertOnFailure set to false, the deducted amount is not refunded. This causes users to lose the ETH intended for failed contributions.

Party Protocol

High
Smart contracts

ETHCrowdfundBase.sol : totalVotingPower is increased too much in the _finalize function

The ETHCrowdfundBase._finalize function increases the party's total voting power by an amount that includes funding fees, while individual users receive voting power based only on their contributions minus fees. This mismatch means the sum of users' voting power is less than the total, making unanimous votes impossible and potentially preventing any proposal from being executed.

Party Protocol

High
Business logic

totalVotingPower needs to be snapshotted for each proposal because it can change and thereby affect consensus when accepting / vetoing proposals

The total voting power used to decide whether a proposal passes is read live rather than from the same snapshot as the individual votes. If total voting power changes after a proposal is created, the pass threshold is calculated against the wrong denominator, so a proposal can become impossible to pass or pass with fewer votes than intended.

Party Protocol

Medium
Access control

InitialETHCrowdfund + ReraiseETHCrowdfund : Gatekeeper checks wrong address

The InitialETHCrowdfund and ReraiseETHCrowdfund contracts check the contributor address instead of the caller (msg.sender) when enforcing a gatekeeper allowlist. This lets any user contribute on behalf of an allowlisted address, bypassing the intended restriction that only allowlisted users can contribute.

Party Protocol

Medium
Business logic

The distribution logic will be broken after calling rageQuit()

The distribution share calculation uses the current total voting power, which decreases when a user burns their NFT via rageQuit(). An attacker can claim their share, burn one NFT, then claim again with a higher share, stealing funds from other users.

Party Protocol

High
Business logic

rageQuit() cannot transfer ERC1155 fungible tokens

The rageQuit function only supports ETH and ERC20 tokens, so users cannot withdraw their fair share of ERC1155 fungible tokens. This means a rage quitter loses their entitlement to those tokens.

Party Protocol

Medium
Audit finding

Users wouldn’t refund from the lost ETH crowdfunds due to the lack of ETH

The refund calculation could return more than the original contribution due to rounding, causing the refund transfer to revert when the contract lacks sufficient ETH. An attacker could not exploit this for gain, but users would be unable to reclaim their funds after a lost crowdfund.

Party Protocol

High
Business logic

VetoProposal : User can veto multiple times so every proposal can be vetoed by any user that has a small amount of votes

The VetoProposal contract did not track whether an address had already voted to veto a proposal, so a single voter could call voteToVeto repeatedly and accumulate enough veto votes to defeat any proposal. An attacker with a small share of voting power could therefore veto every proposal, potentially preventing the party from acting.

Party Protocol

High
Race condition

Reentrancy guard in rageQuit() can be bypassed

The reentrancy guard in rageQuit() can be bypassed by a party host who resets the rageQuitTimestamp during a token transfer callback, allowing reentrancy and potentially stealing funds from other members.

Party Protocol

Medium
DoS

Burning an NFT can be used to block voting

A new check in the accept() function reverts if an NFT was burned in the same block, intended to stop a voting-power manipulation. An attacker can front-run a legitimate accept() call by minting a zero-voting-power NFT and burning it, causing the victim's transaction to revert and blocking the vote.

Party Protocol

Medium