Tender Fi Attack Walk Through
A price oracle mis-scaled the GMX token price by 20 orders of magnitude, so the attacker could borrow far more than their collateral allowed. They exploited this to drain about $1.59 million from Tender.fi's lending pools.
The recent whitehat attack on Tender. fi’s lending protocol stole $1.59 million funds from the liquidity pools. Let’s trace back the attack step by step on Arbiscan to see how the exploit took place and discover key vulnerabilities.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the price oracle scaled the GMX price incorrectly, returning a value with 38 decimals instead of the expected 18, which inflated the collateral value by 10^20.
Impact
The attacker could borrow assets far exceeding their collateral, stealing about $1.59 million; the funds were later returned and a bounty was paid.
What the attacker needed
A small amount of ETH to swap for GMX; a Tender.fi lending pool that accepts GMX as collateral
The fix
The team updated the comptroller proxy with a new oracle contract that fetches prices directly from Chainlink and scales them correctly to 18 decimals.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A lending protocol lets you borrow assets if you deposit enough collateral. The protocol uses a price oracle to value your collateral. Here, the oracle reported the GMX token price with too many decimal places, making it seem enormously valuable. The attacker deposited a tiny amount of GMX and then borrowed a huge amount of other assets.