The JBXBuybackDelegate contract swaps ETH for project tokens on Uniswap V3 but sets the price limit to the extreme, so if the pool has low liquidity the swap stops early and the unused ETH remains locked in the contract. An attacker could exploit this by manipulating the pool or waiting for low liquidity, causing users' ETH to become permanently stuck.
The redeemParams function in JBXBuybackDelegate returns zero for the reclaim amount instead of passing through the input value, so any funding cycle configured to use it as a redeem data source will burn tokens and send zero tokens to the beneficiary. The function also lacks the virtual keyword, preventing derived contracts from overriding the faulty implementation.
The delegate's design forces users to set the minimum returned tokens parameter to zero when paying, because the swap path returns a zero weight and would revert if the minimum is non-zero. This disables the slippage check when the vanilla minting path is taken, so users may receive fewer tokens than expected.
The tier reserved rate in the Juicebox NFT rewards contract is not validated and can be set above the maximum allowed value, causing an inflated count of outstanding reserved tokens. This inflated value increases the total redemption weight, which can reduce or zero out the amount users receive when redeeming their NFTs.
The reserved-token calculation rounds up to one token when no tokens have been minted yet, so a project can mint a single reserve token for every tier and redeem them to take most of a victim's contribution. An attacker can launch a honeypot project and steal the first user's funds without any special flags.
When a user pays the protocol with the _dontMint flag set, the payment is not added to their creditsOf balance, so the funds are lost. An attacker could not directly exploit this, but a user could lose funds by using the flag expecting credits to be saved.
A calculation of how many reserve tokens remain mintable can fall below the number already minted once a fully minted tier starts being burned, causing an arithmetic underflow. Because minting and redeeming both call this function, all minting and redeeming of the NFTs becomes impossible.
The redemption weight calculation for tiered NFTs uses the wrong tier index when fetching the number of reserved tokens outstanding, causing users to redeem incorrect amounts. This can lead to users receiving less or more funds than they are eligible for.
The total redemption weight for overflow redemptions added the count of outstanding reserved tokens directly to a contribution-floor-weighted sum, instead of multiplying that count by the tier's contribution floor. This made the total weight inconsistent with the sum of individual contributor weights, so contributors could redeem incorrect (potentially larger) portions of the overflow.
A tier's reserved token beneficiary is not stored explicitly when it matches the current default, so later changing the default silently redirects that tier's reserved tokens to the new default beneficiary. An attacker or owner could cause reserved tokens intended for one address to be sent to another.
A Juicebox project can accept payments in multiple currencies via different payment terminals, but the NFT delegate only supports one pricing currency. If a payment is made in another currency and no price feed is configured, the delegate silently returns without minting the NFT, even if the contribution would have qualified for a tier.
The payment processing function combines a new payment with the beneficiary's existing credit balance to mint NFTs, without checking that the payer is the beneficiary. An attacker can pay a small amount and name a victim as beneficiary, forcing the victim's saved credits to be used to mint a lower-tier NFT instead of the higher-tier one they were saving for.
The Juicebox NFT tier contract allows the first reserve token to be minted in a deactivated tier, even though no tokens were previously minted in that tier. An attacker could mint an unfair NFT and use it to redeem funds from the project.
The initialize function of the JBTiered721Delegate contract could be called by anyone with a zero store address and empty parameters, letting them become the owner. The attacker could then call didPay with fake data to inflate creditsOf for arbitrary accounts without touching the store.
The smart contract stores tier settings by casting uint256 values to smaller types without checking, so large values are truncated. An attacker could exploit this to underpay for an NFT if the owner sets a high contribution floor.
A function that picks the best tier for a mint loops over every tier, so with many tiers a payment with a large leftover amount can run out of gas and always revert. This could block payments and, per the judge, also break redemptions that loop over tiers.
The JBToken contract's mint function is restricted only to the owner, and ownership can be transferred to any address via the changeTokenOf function, allowing that address to mint an arbitrary number of tokens.
The processFees() function iterates over an unbounded array of held fees, which can grow large as fees are added. An attacker could cause the function to exceed the gas limit, preventing fee distribution.
The addFeedFor function only checked whether a price feed for the given currency pair already existed in one direction, but not the inverse direction. This allowed two different oracles to be set for the same pair in opposite directions, potentially causing inconsistent currency conversions.
A token ownership transfer could be frontrun by an attacker who calls the change function first, linking the token to their own project and gaining ownership. This could allow the attacker to mint arbitrary amounts of the token if it has an owner-restricted mint function.
A project owner can set a very large number of splits, causing the distributeReservedTokensOf function to exceed the block gas limit when called. A user who calls it expecting a large share of reserved tokens instead loses gas fees without receiving tokens.
The fee calculation in the Juicebox smart contract used an incorrect formula that divided by the sum of the discounted fee and the maximum fee, leading to a lower fee being charged than intended. An attacker could exploit this to pay less than the required fee when making payments through the protocol.
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.
The contract calls Chainlink's latestRoundData without error handling, so if the feed reverts, all price queries fail. Since feeds cannot be changed after configuration, this causes a permanent denial of service for price oracle access.
The distributePayoutsOf function transfers funds to beneficiaries before updating state, allowing a beneficiary to re-enter and potentially cause incorrect calculations or repeated payouts. The judge noted a lack of a clear exploit path but confirmed that re-entry is possible if the attacker is a splits beneficiary.
The function that calculates reserved tokens to distribute uses an incorrect formula, minting more tokens than the defined reserved rate. This increases total supply and reduces the terminal assets redeemable by users.
The changeTokenOf function allows the project owner to replace the project's token, which prevents holders of the old token from redeeming overflowed assets. An attacker (the owner) could change the token and lock out existing holders from their redeemable funds.
The Juicebox payment terminal credited the amount stated in a payment rather than the amount actually received when using fee-on-transfer tokens. This could cause withdrawals to revert because the contract's balance would be less than the recorded amount, potentially locking funds for projects.
The JBERC20PaymentTerminal contract calls ERC20 transfer and transferFrom without checking return values, so tokens that return false instead of reverting may silently fail, and tokens without return values (like USDT) cause reverts. An attacker could receive project tokens without their payment actually succeeding, and the terminal cannot support popular nonstandard ERC20s.
The price feed contract used only the price answer from Chainlink's latestRoundData() without checking whether the data was stale or from a complete round. An attacker could exploit outdated price data to cause incorrect token minting, distribution amounts, and overflow calculations, impacting all projects and token holders.
JB
Juicebox Buyback Delegate
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.