JetonRouter's $229K Loss and How Olympix Would Have Prevented It
Seven wallets on Ethereum had done the most ordinary thing in DeFi. At some point they'd approved a shared AllowanceTarget contract to spend their tokens, so an aggregator could route their trades without asking for a fresh approval every time. On April 27, 2026, at 19:49:59 UTC, one transaction used those standing approvals to pull aUSDT, USDT and stETH out of all seven wallets and hand the proceeds to a single attacker address as 229,030.97 USDT.
The contracts behind it were an unverified DEX-aggregator settlement stack that security alerts tracked as JetonRouter. The Defimon alert flagged it the same day, and BlockSec's weekly roundup later classified it as a business logic flaw with a loss of about $229K. The drain needed no flash loan, and as of November 24, 2026, no team had published a post-mortem and the contracts were still unverified on Etherscan.
A Shared Approval Pool With One Trusted Door
The design is a familiar one in aggregator infrastructure. Users approve a single contract, the AllowanceTarget, once and leave that approval in place. The AllowanceTarget exposes an executeCall path that makes a token call on its own authority, which means it's the address whose allowance actually matters. On top of it sits an authorized spender, the contract at 0xa152, which the system trusts to tell the AllowanceTarget when to move a user's tokens. A helper at 0xfc40 wraps that job in a function called spendFromUser, which takes an owner, a token and an amount and turns them into a transferFrom routed through the AllowanceTarget.
The split is meant to contain risk. The AllowanceTarget is small and does what it's told, and the authorized spender is supposed to be the gatekeeper that only issues instructions matching a real trade a user asked for. The whole scheme rests on one invariant: a token leaves an owner's wallet only when that owner wants to trade it through this stack, for that amount, to that destination.
That invariant matters more than usual here, because standing approvals to a shared AllowanceTarget are extremely common and usually unlimited. Once anyone can make the trusted spender issue pulls of their choosing, every wallet that ever approved the pool is reachable up to its full balance.
What the Transaction Shows
The attacker EOA deployed a short-lived contract, which deployed the attack contract and called it. From there the call path ran through another unverified contract at 0x26bB, then into the authorized spender at 0xa152, which delegatecalls into its implementation at 0xC510. The authorized spender then called the helper's spendFromUser, the helper called executeCall on the AllowanceTarget, and the AllowanceTarget called transferFrom on the victim's token. Each pull moved the victim's tokens to 0xa152, and 0xa152 passed them on to the attack contract.
It ran eight pulls against seven wallets. The first wallet lost 85,744.81 aUSDT, which 0xa152 redeemed through Aave V2 for the same amount of USDT, and then another 66,630.26 USDT from the same wallet. Five more wallets lost 1,076.04, 1,000, 345, 45.81 and 43.16 USDT. The seventh lost 32.517 stETH. In every case the amount matched what the wallet held and had approved, and because the approvals were effectively unlimited, that was the whole balance.
The stable side came to 154,885.09 USDT. The attack contract swapped the stETH for ETH in the Curve stETH pool, then sold the ETH for USDT through Uniswap V3 and Uniswap V4 pools, partly by way of WETH and WBTC. The last transfer in the transaction sent 229,030.97 USDT to the attacker EOA, which is the figure DeFiHackLabs records as the total lost.
Why the Trusted Spender Became Everyone's Spender
Every pull in the trace ended at the same contract boundary. spendFromUser moved tokens on the strength of its caller being the authorized spender, with nothing in the call tying the owner, the amount or the recipient to an order that owner had signed. The tokens went to the authorized spender itself rather than to a swap counterparty, and from there straight to the attacker. Whoever could get 0xa152 to issue these calls effectively held the spending power of the entire approval pool, and the forwarder in front of it let anyone claim to be any wallet.
The trace shows how the attacker reached that door. The call into 0xa152 didn't come from the attack contract directly. It came through 0x26bB, a contract deployed in August 2023 that works as a meta-transaction forwarder: it takes a request naming a from address, a target and calldata, calls the target, and appends the from address to the end of the calldata so the target treats that address as the real sender. The authorized spender trusted 0x26bB to vouch for who was calling. In the exploit, the attack contract sent 0x26bB a request whose from field was the first victim's wallet and whose target was 0xa152, and the request in the trace has no signature field at all. 0x26bB forwarded it anyway with the victim's address appended, and 0xa152 issued spendFromUser against that victim as if the victim had asked for it.
A registry that records who's allowed to act as a spender is a different thing from a check that the spender is acting for the right owner, for the right amount, right now. Systems built on shared approvals need the second check somewhere on every path that ends in a transferFrom against someone else's wallet. In this stack, the only ceiling on each pull was the smaller of the owner's balance and the owner's allowance, and for these seven wallets that ceiling was the balance.
How Olympix Would Have Caught the Unbound Pull
Olympix reads a contract as states, transitions and entry points. In this stack the state that matters is who can spend each user's approval to the AllowanceTarget, and every path that reaches executeCall is a transition that can change who holds that money. Had the team run Olympix on the forwarder, spender and helper contracts, static analysis would have surfaced the signal early: an externally reachable path that ends in transferFrom against a caller-supplied owner address, sends the tokens back to the calling contract, and checks nothing that links that owner to the call.
From that signal, BugPoCer would have worked the invariant directly: tokens leave an owner only against an order that owner authorized, for that amount, to a settlement destination. BugPoCer starts from an invariant like that and searches for a sequence of calls that breaks it. In this code, the sequence it would have returned is short. An address with no relationship to a victim reaches spendFromUser with that victim's address and full balance, the AllowanceTarget executes the transferFrom, and the tokens arrive at the spender without the owner ever signing anything.
That output would have come back as a counterexample with a generated Forge test, close in shape to the reproduction DeFiHackLabs wrote after the fact. Produced in development, it would have been a failing test on a pull request instead of seven drained wallets. Because the check runs at every merge and before release, a later refactor that opened a new route into the spender would have hit the same invariant again.
The recipient adds a second, independent signal. A transferFrom that sends a user's tokens to the contract issuing the call, rather than to an AMM or a settlement venue, marks the path as worth testing from both ends. Combined with an owner parameter nobody validates, it's the kind of signal the engine uses to narrow from every possible path to the few feasible ones that touch the invariant.
One Shared Approval, Seven Drained Wallets
The AllowanceTarget pattern is sound when the contracts allowed to drive it check intent on every call. What failed here was the assumption that being an authorized spender settled the question of whose tokens could move. Any function that accepts an arbitrary owner address and moves that owner's assets needs proof that the owner asked for this exact movement, whether that's a signed order with a nonce, a per-order allowance or a recipient restricted to real settlement venues. Without it, every past approval to the shared pool turns into exposure the moment the gate is reached.
For builders, the practical test is simple to state. List every path in the system that ends in a transferFrom against someone other than msg.sender, and write down what ties that someone to the call. If the answer is a role check on the caller and nothing about the owner, that path is the one to fix first. To see how Olympix maps those paths in your contracts and hands back a runnable counterexample for each one that breaks, book a technical walkthrough.
On-Chain References
Exploit Transaction: 0x5770...b576
Attacker EOA: 0x224C...fa46
Attack Contract: 0x9946...65db
Forwarder, entry contract (unverified): 0x26bB...01F9
Authorized Spender (unverified): 0xa152...E4f3
Authorized Spender Implementation (unverified): 0xC510...d846
Spender Helper (unverified): 0xfc40...5837
AllowanceTarget: 0x2990...5605
More post-mortems
See every post-mortem →See what Olympix finds on your own code
Send us a repo that's already been audited, and we'll run Olympix at the same commit and show you what comes back.




