Pudoo
BTC $63,477.3 -0.13%
ETH $1,888.87 +1.30%
SOL $75.95 +1.19%
BNB $611.2 +0.23%
XRP $1.01 -0.57%
DOGE $0.0708 -0.27%
ADA $0.1827 -1.56%
AVAX $6.36 +2.12%
DOT $0.7866 +0.51%
LINK $8.77 +2.20%
⛽ ETH Gas 28 Gwei
Fear&Greed
27

The Unchecked Oracle: How a Single Price Feed Poisoned 4 Lending Pools

Regulation | HasuBear |

On-chain data doesn't lie. On March 14, 2026, block 19,442,871 on Ethereum mainnet recorded a flash loan attack that drained 2.1 million USDC from four lending pools on the same protocol. The exploit vector? Not a reentrancy bug. Not a faulty liquidation mechanism. A single compromised Chainlink price feed for the EURT/USD pair, updated with a stale price that was 40% below the actual market rate.

I've seen this pattern before. As a DeFi security auditor based in Chengdu, I've audited over 60 lending protocols since 2022. The code is often clean. The math is sound. The vulnerability hides in plain sight—in the assumptions made about external data sources.

Context: The Protocol Mechanics The target protocol, let's call it 'LendVault', is a permissionless lending market that accepts multiple assets as collateral, including a synthetic euro stablecoin called EURT. LendVault uses a custom oracle aggregator that pulls from three sources: Chainlink, Uniswap TWAP, and a fallback from a centralized exchange API. The design is standard—if two of three sources agree, the price is accepted. But the flaw was in the fallback logic.

The Unchecked Oracle: How a Single Price Feed Poisoned 4 Lending Pools

When Chainlink's EURT/USD feed went stale (no new round for 6 hours due to a node runner upgrade), the aggregator's fallback fired. It picked up the Uniswap TWAP for EURT/USDC, which was itself manipulated via a series of small swaps over the previous 10 blocks. The aggregator's code didn't check for a reasonable deviation between the Chainlink price and the Uniswap price. It simply accepted the first two agreeing sources. The result: EURT was undervalued by 40% for 12 minutes.

The Unchecked Oracle: How a Single Price Feed Poisoned 4 Lending Pools

Core: Code-Level Analysis and Trade-offs Let me walk through the relevant Solidity snippet. The aggregator contract had a function getPrice(address asset):

The Unchecked Oracle: How a Single Price Feed Poisoned 4 Lending Pools

Market Prices

BTC Bitcoin
$63,477.3 -0.13%
ETH Ethereum
$1,888.87 +1.30%
SOL Solana
$75.95 +1.19%
BNB BNB Chain
$611.2 +0.23%
XRP XRP Ledger
$1.01 -0.57%
DOGE Dogecoin
$0.0708 -0.27%
ADA Cardano
$0.1827 -1.56%
AVAX Avalanche
$6.36 +2.12%
DOT Polkadot
$0.7866 +0.51%
LINK Chainlink
$8.77 +2.20%

Fear & Greed

27

Fear

Market Sentiment

Event Calendar

{{年份}}
28
03
unlock Arbitrum Token Unlock

92 million ARB released

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

12
05
halving BCH Halving

Block reward halving event

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

18
03
unlock Sui Token Unlock

Team and early investor shares released

7x24h Flash News

More >
{{快讯列表(10)}} {{loop}}
{{快讯时间}}

{{快讯内容}}

{{快讯标签}}
{{/loop}} {{/快讯列表}}

Tools

All →

Altseason Index

44

Bitcoin Season

BTC Dominance Altseason

Gas Tracker

Ethereum 28 Gwei
BNB Chain 3 Gwei
Polygon 42 Gwei
Arbitrum 0.5 Gwei
Optimism 0.3 Gwei

Market Cap

All →
1
Bitcoin
BTC
$63,477.3
1
Ethereum
ETH
$1,888.87
1
Solana
SOL
$75.95
1
BNB Chain
BNB
$611.2
1
XRP Ledger
XRP
$1.01
1
Dogecoin
DOGE
$0.0708
1
Cardano
ADA
$0.1827
1
Avalanche
AVAX
$6.36
1
Polkadot
DOT
$0.7866
1
Chainlink
LINK
$8.77

🐋 Whale Tracker

🟢
0x06fc...8d21
1h ago
In
4,759.94 BTC
🟢
0xd796...bcc8
30m ago
In
2,504,291 DOGE
🔵
0xb6de...b2ab
1h ago
Stake
2,627 ETH

💡 Smart Money

0x8a11...19ff
Top DeFi Miner
-$1.7M
73%
0x00c0...0f10
Institutional Custody
-$1.3M
76%
0x4263...08d1
Market Maker
+$2.9M
78%