Pudoo
BTC $79,605.1 -1.76%
ETH $2,454.25 -2.78%
SOL $102.53 -1.36%
BNB $747.7 +3.80%
XRP $1.4 -2.92%
DOGE $0.0859 -1.89%
ADA $0.2131 -3.49%
AVAX $7.5 +0.03%
DOT $0.9074 +3.64%
LINK $11.77 -2.05%
⛽ ETH Gas 28 Gwei
Fear&Greed
73

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.

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

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):

Market Prices

BTC Bitcoin
$79,605.1 -1.76%
ETH Ethereum
$2,454.25 -2.78%
SOL Solana
$102.53 -1.36%
BNB BNB Chain
$747.7 +3.80%
XRP XRP Ledger
$1.4 -2.92%
DOGE Dogecoin
$0.0859 -1.89%
ADA Cardano
$0.2131 -3.49%
AVAX Avalanche
$7.5 +0.03%
DOT Polkadot
$0.9074 +3.64%
LINK Chainlink
$11.77 -2.05%

Fear & Greed

73

Greed

Market Sentiment

Event Calendar

{{年份}}
10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

18
03
unlock Sui Token Unlock

Team and early investor shares released

28
03
unlock Arbitrum Token Unlock

92 million ARB released

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

12
05
halving BCH Halving

Block reward halving event

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

7x24h Flash News

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

{{快讯内容}}

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

Tools

All →

Altseason Index

41

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
$79,605.1
1
Ethereum
ETH
$2,454.25
1
Solana
SOL
$102.53
1
BNB Chain
BNB
$747.7
1
XRP Ledger
XRP
$1.4
1
Dogecoin
DOGE
$0.0859
1
Cardano
ADA
$0.2131
1
Avalanche
AVAX
$7.5
1
Polkadot
DOT
$0.9074
1
Chainlink
LINK
$11.77

🐋 Whale Tracker

🔵
0xfc89...a708
6h ago
Stake
4,999,695 USDT
🔴
0x0c69...6aef
1h ago
Out
50,658 BNB
🔵
0x5589...bf7d
12h ago
Stake
2,067 BNB

💡 Smart Money

0x1148...da2f
Market Maker
+$0.4M
64%
0x940e...9eee
Top DeFi Miner
-$4.8M
67%
0x5cef...aea6
Arbitrage Bot
-$4.3M
87%