Grieffer beneficiary can cause DOS
A beneficiary of a payout split could revert the transaction when receiving funds, which would block the distribution of payouts to all other beneficiaries. An attacker who controls one beneficiary address could therefore cause a denial of service for the whole payout process.
Submitted by hake, also found by cccz
Payouts won’t be able to be distributed if one of multiple beneficiaries decides to revert the transaction on receival.
Proof of Concept
// If there's a beneficiary, send the funds directly to the beneficiary. Otherwise, send to the msg.sender.
_transferFrom(
address(this),
_split.beneficiary != address(0) ? _split.beneficiary : payable(msg.sender),
_netPayoutAmount
);
If token used is native ETH or ERC777 a beneficiary can revert the transaction on the callback and DOS _distributeToPayoutSplitsOf() for all the other beneficiaries.
Recommended Mitigation Steps
Have beneficiaries withdraw their benefit instead of sending it to them.
mejango (Juicebox) acknowledged and commented:
By design. Project owners bring their own risks and opportunities when setting payout splits. Made clear here.
A malicious or compromised beneficiary is not exactly under a project owner’s control. Implementing the recommended mitigation step would prevent the possibility of DOS while maintaining all privileges of project owner. No risks outlined in link below would be mitigated by the recommended mitigation, thus project owner would still have access to same range of functionalities. https://info.juicebox.money/dev/learn/risks/#setting-a-distribution-limit-and-payout-splits
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
Likely the contract sends funds directly to each beneficiary in a loop, so a single beneficiary that reverts on receipt causes the entire distribution transaction to fail.
What the attacker needed
Attacker controls a beneficiary address; payout uses native ETH or ERC777
The fix
Beneficiaries should withdraw their share themselves instead of the contract pushing funds to them.
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.
When a project pays out funds, it sends money to several people (beneficiaries) in one transaction. If one of those people uses a wallet that refuses the payment, the whole transaction fails, so nobody gets paid. This is a denial of service: one person can stop everyone else from receiving their share.
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.