A caller-supplied fake loan source let REVLoans trust a self-deployed contract's self-reported decimals, inflating the revnet-wide borrowed total enough to draw a real ETH loan from JBMultiTerminal against almost no collateral. The address that executed it is tagged by Etherscan as a whitehat MEV bot that front-ran the original exploiter, and DeFiHackLabs reports a loss of 21.77 ETH, put at $52,000 by DeFiLlama.
Security ·
Logged as “2026-04-20: Fake Terminal Loan Source Validation Bypass on JuiceboxREVLoans”.
Juicebox lets a project launch as a "revnet," a treasury that pays out through one or more terminal contracts, such as JBMultiTerminal, which custodies the revnet's ETH and issues project tokens against payments in. REVLoans is a companion contract that lets holders of a revnet's project token borrow against it, drawing from whichever asset source the revnet uses.
borrowFrom takes a REVLoanSource struct of {token, terminal} supplied directly by the caller, with no check that terminal is one of the revnet's real terminals. Internally, _borrowAmountFrom fetches DIRECTORY.terminalsOf(revnetId), the revnet's actual terminal list, but only hands it to _borrowableAmountFrom to total the revnet's surplus. It never checks source.terminal against that list. Instead it calls source.terminal.accountingContextForTokenOf(), a function on the caller-supplied contract itself, and trusts whatever decimals and currency that contract reports back. Each new source is appended once to the revnet's permanent source list, and its running total lands in totalBorrowedFrom. _totalBorrowedFrom then folds every registered source, fake ones included, into a single totalBorrowed figure for the revnet, rescaled by each source's self-reported decimals. That figure becomes part of the numerator in _borrowableAmountFrom's cash-out formula, so inflating one source's recorded total inflates how much any later loan, including one backed by real ETH from JBMultiTerminal, is allowed to draw.
Against revnet #3, the exploit opened and closed in two calls from the same address, 0x23245f620d1e910ad76e6b6de4f8284a53c9ad2d, both landing in block 24,917,719 on Ethereum mainnet:
JBMultiTerminal for revnet #3 to receive project tokens, then grant REVLoans permission to burn those tokens as collateral.accountingContextForTokenOf reports 36 decimals instead of the native 18 (the proof of concept's own comment says this inflates the recorded fake borrow by a factor of 1e18), then call borrowFrom against it with a small amount of the project tokens as collateral. This registers the fake contract as a loan source and writes an inflated figure into totalBorrowedFrom.borrowFrom again, against the real native-ETH source backed by JBMultiTerminal, with a tiny amount of collateral. Because _totalBorrowedFrom now includes the fake source's inflated total, the formula sizes this second loan far beyond what the posted collateral should support, and pays it out in real ETH.The proof of concept reproduces this against a mainnet fork at block 24,917,718 and reports a profit over 21 ether, matching the 21.77 ETH loss DeFiHackLabs reports for the live attack transaction.
Etherscan tags the address that executed both calls as a MEV bot, and its own public name tag reads: "This address is a whitehat address involved in a logic flaw vulnerability in the Juicebox's REVloan Contract. Reported by TenArmor." A thread from the account DefimonAlerts says the bot "front-ran" the malicious calls by copying the identical borrowFrom(fake-terminal) sequence into its own transactions before the original exploiter's could land, and separately links a transaction in the same block that carries out the first of the two borrow calls above. Two days later, on 2026-04-22, the same address sent a zero-value transaction to the address Etherscan labels "Juicebox: Deployer 2," carrying a plain-text message in its input data: "our whitehat bot just frontrun an exploit targeting your contract, please let us know how to return your funds, and if possible, any amount of bounty is appreciated." No source confirms whether the funds were returned or a bounty paid. The fake terminal contract itself, deployed by the same address, has no verified source on Etherscan.
DeFiLlama's hacks list records the incident as "Juicebox V3," classified under missing input validation, with a reported loss of $52,000. DefimonAlerts reports the same incident at $51.9K. Neither dollar figure is reconciled against the 21.77 ETH DeFiHackLabs reports, and the three numbers should be read as independent estimates rather than one confirmed total.
REVLoans' current source in the rev-net/revnet-core repository still defines borrowFrom with the same caller-supplied REVLoanSource struct. A later rewrite of the contract, published under `rev-net/revnet-core-v6`, drops the free-form terminal argument from borrowFrom entirely in favor of a plain token parameter, with sources restricted, in the contract's own comment, to "the revnet's accepted accounting contexts on the canonical multi terminal." That removes the opening the fake terminal used, though no source ties the change directly to this incident.
The same pattern, trusting a caller-supplied contract as if it were a registered pool or terminal rather than checking it against the protocol's own registry, also drained RouterDrain, where a fake Uniswap V3 pool abused router allowances the same way a fake terminal abused REVLoans' accounting.
Query every incident yourself — free, no signup
Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.