An unverified JB Gateway contract ran a sell, burn and reserve-sync cycle against the JB/USDT PancakeSwap pair sixteen times in succession, funded by a flash-borrowed WBNB position deposited into Venus Protocol as collateral. DeFiHackLabs reports a loss of 49,958.06 USDT, corroborated by the attack transaction's own on-chain record and by DeFiLlama's hacks database.
Security ·
Logged as “2026-06-18: Jb Helper Repeated Cycle Drains Jbusdt Pair on JB”.
JB is a BEP-20 token on BNB Smart Chain traded against USDT through a single PancakeSwap pair, and its drain ran through a second, unverified contract that DeFiHackLabs' proof of concept calls the JB Gateway, at 0x1B5732Eb98911c25acf7bDfAffB9409782CAE6d7. The gateway exposes two functions the proof of concept calls repeatedly: a bootstrap call under selector 0xd680aabd, called once to seed the cycle, and a cycle call under selector 0x53a9fcbc, called sixteen times in total, fifteen of them spending a fiftieth of the caller's current JB balance and the last spending whatever JB remained. The gateway's source code has not been published: it is not verified on BscScan, and Sourcify carries no match for the same address either. The mechanism below is inferred from the gateway's on-chain behaviour and the proof of concept's test setup rather than its code. Each cycle call drove a sell, burn and reserve-sync sequence against the JB/USDT pair that pulled a slice of the pair's USDT balance out with every pass, independent of how much JB the cycle actually supplied.
Calling the gateway at all required satisfying an authorization check the proof of concept has to work around. A separate contract at 0x94741df7BF9dB91B172A4E195E9BeA79Ce3726cD, which the proof of concept labels the JB Auth Helper, exposes a parent() lookup the gateway appears to consult, and the test only passes after it takes over that helper's ownership and binds its own contract as a recognised referrer. What the real attacker did to satisfy the same check before the attack is not established, only that the on-chain attack succeeded despite the check existing, which means that whatever it verifies does not guard the reserve-draining logic itself.
The attacker, at 0xD99E1aBfC5dd5034D7FF63828D16c5E945D1b856, funded the operation with a flash loan of the lending contract's entire WBNB balance, deposited it into Venus Protocol as collateral, and borrowed 70,000,000 USDT against that position, a Venus-internal working-capital figure rather than the attacker's eventual gain, to seed each cycle. The proof of concept's own header names the deployed attack contract as 0xcc21c75f9e13054667663f9ed37f41e65b52dee7, not the auth helper, and the transaction's on-chain record confirms it: the attack transaction, hash 0x54e120b8d62a9d7cef94bf51f1f5b8aa13565d76d8797a79afeeb25ed0e1dc25, was sent from the attacker's address to that exact contract, landing in block 104,980,467, timestamped 2026-06-18 16:15:57 UTC, one block after the proof of concept's chosen fork point of 104,980,466. That transaction's own call data carries three addresses as arguments, for the JB token, the JB/USDT pair and the gateway, each matching what the proof of concept names by the same roles, which corroborates the proof of concept's account of which contracts were involved independent of DeFiHackLabs' own write-up.
DeFiHackLabs documents a total loss of 49,958.06 USDT, against the proof of concept's own assertion that profit exceed 40,000 ether of USDT. DeFiLlama's hacks database lists the same incident on the BSC chain, dated one day later at 2026-06-19, and records the loss at roughly 50,000, rounding DeFiHackLabs' figure rather than contradicting it. It classifies the technique as spot price manipulation under an oracle-manipulation heading, a framing that describes the effect on the pair's price rather than the sell, burn and resync mechanism visible in the proof of concept's calls.
No write-up of the JB incident beyond DeFiHackLabs' own entry exists, and no security tracker lists the gateway, auth helper or attack contract addresses. Coverage of BNB Smart Chain hacks that week centered on unrelated, larger incidents, and nothing indicates JB's team said anything publicly about the drain, paused the token, or offered a bounty. Venus Protocol itself was not compromised; it served only as a source of borrowed working capital, the same role played by Moolah in the earlier DTXT drain (2026-06-05) and by Pancake V3 flash loans elsewhere on the chain. The vulnerability sits entirely in the unverified gateway's cycle logic, not in the lending market that funded it.
Because the gateway is unverified, the specific missing check cannot be named from source, but the shape of a fix is visible from the pair's side regardless. A JB/USDT pair that only allows sync() and skim() to be called by the router itself, rather than by any external contract, would break the cycle regardless of what the gateway does internally, since the drain depends on the pair accepting a reserve resync after an attacker-controlled balance has already been manipulated. Equally, if the JB token's own transfer hook excludes the JB/USDT pair from whatever sell-side logic the gateway is driving, repeated cycles lose their profit motive even if the gateway's bug is never patched. Sixteen successive calls into the same cycle function, passing an authorization check that evidently exists but did not stop the drain, is itself the signal: a contract that lets a caller repeat a value-extracting action without a balance floor will eventually be found by someone willing to run it enough times, whatever else it checks along the way.
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.