Skip to content
DoS Audit finding Intermediate

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.

hake Follow

Originally disclosed on Code4rena

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

https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/828bf2f3e719873daa08081cfa0d0a6deaa5ace5/contracts/abstract/JBPayoutRedemptionPaymentTerminal.sol#L1147-L1152

// 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.

hake (warden) commented:

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


The original report as published on Code4rena, by hake. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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.

More by hake

View all

5 more disclosed reports, best first.

More from Juicebox Buyback Delegate

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.