Reproduced Exploit
Blueberry HyperliquidEscrow — tvl() omits in-flight USDC
1. Non-USDC assets add same-block in-flight bridge amounts into TVL. 2. The USDC branch only counts balanceOf and skips in-flight. 3. Deposit against understated TVL mints 2× shares; redeem after settle steals 250 USDC.
Chain
Other
Category
logic
Date
May 2025
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 61494-h-01-escrowtvl-does-not-add-in-flight-usdc-amount-pashov-aud. Standalone Foundry PoC and full write-up: 61494-h-01-escrowtvl-does-not-add-in-flight-usdc-amount-pashov-aud_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/logic/wrong-state · impact/loss-of-funds/direct-drain · frozen-funds
Reproduction: a self-contained Foundry PoC that compiles & runs in an isolated project with only
forge-std— no fork, no RPC. Full trace: output.txt. PoC: test/61494-h-01-escrowtvl-does-not-add-in-flight-usdc-amount-pashov-aud_exp.sol.
AuditVault taxonomy: severity/high · sector/bridge · sector/lending · platform/pashov · locked-funds · oracle-freshness
Key info#
| Impact | HIGH — understated TVL during USDC bridge → excess shares → drain honest LPs |
| Protocol | Blueberry HyperliquidEscrow |
| Vulnerable code | tvl() USDC branch skips in-flight bridge amount |
| Bug class | Incomplete TVL / share-price accounting |
| Finding | Pashov Audit Group Blueberry 2025-05-16 · #61494 · H-01 |
| Report | Blueberry-security-review_2025-05-16 |
| Source | AuditVault |
| Status | Audit finding. Reproduced as a standalone local PoC. |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
- Non-USDC assets add same-block in-flight bridge amounts into TVL.
- The USDC branch only counts
balanceOfand skips in-flight. - Deposit against understated TVL mints 2× shares; redeem after settle steals 250 USDC.
The vulnerable code#
if (assetIndex == USDC_SPOT_INDEX) {
tvl_ += IERC20(assetAddr).balanceOf(address(this)) * evmScaling; // @> VULN
// FIX: also add inFlightBridge[USDC].amount when same block
}
Root cause#
USDC bridging reduces EVM balance while the value remains protocol-owned in-flight. Omitting that amount understates TVL and share price for same-block depositors/redeemers.
Attack walkthrough#
- Seed 1000 USDC → TVL 1000e18.
- Bridge 500 USDC → buggy TVL 500e18 (correct 1000e18).
- Deposit 500 USDC → 1000e18 shares (fair 500e18).
- Settle bridge; redeem → 750 USDC out; profit 250 USDC.
Diagrams#
Impact#
Same-block USDC bridge + deposit yields excess shares and extracts value from honest LPs. Symmetric redeem-at-low-TVL can also strand depositors.
Sources#
- AuditVault finding #61494
- Pashov Blueberry security review 2025-05-16
- Reduced source: HyperliquidEscrow.tvl USDC branch (Pashov Blueberry 2025-05-16)
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 61494-h-01-escrowtvl-does-not-add-in-flight-usdc-amount-pashov-aud_exp (evm-hack-registry mirror).
- AuditVault finding: 61494-h-01-escrowtvl-does-not-add-in-flight-usdc-amount-pashov-aud.
Alerts & third-party analyses
These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.