Skip to content
Smart contracts Write-up Advanced

Stake, Zunami, Steadefi: Key Compromise, Price Games, and Reentra

Four separate incidents are described: Stake lost funds because private keys for hot wallets were compromised; Zunami was exploited through price manipulation by inflating Curve pool balances; EarningFarm had a reentrancy flaw in its withdraw function; and Steadefi's deployer wallet was compromised, allowing vault ownership to be reassigned and assets drained.

Olympix Follow

Published on olympixai.medium.com

These four attacks span the full kill-chain spectrum. Stake’s $41M loss came from compromised hot wallet keys — no contract bug needed.

Olympix, on olympixai.medium.com

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

What the attacker needed

Compromised private keys (Stake, Steadefi); flash loan availability (Zunami, EarningFarm); vulnerable withdraw function (EarningFarm)

How it was found

  1. For Stake: attackers gained access to hot wallets and called transfer() to drain funds on multiple chains.
  2. For Zunami: the attacker flash-loaned large amounts of stablecoins and WETH and swapped them for UZD tokens on Curve, inflating total holdings.
  3. For EarningFarm: the attacker borrowed ETH via flash loans and deposited it into the ENF_ETHLEV contract.
  4. For EarningFarm: the attacker exploited the withdraw() function, transferring ENF_ETHLEV tokens to themselves in the fallback function before the withdrawal executed.
  5. For Steadefi: the attacker used the compromised deployer wallet to transfer ownership of vaults and approve themselves as a borrower.
  6. For Steadefi: the attacker maximised lending capacity and drained assets.

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.

This text summarises four crypto attacks. In one, attackers stole the digital keys that control a service's wallets, so they could simply transfer funds out. In another, they tricked a pricing system by temporarily adding huge amounts of money to a pool, and in a third they abused a withdrawal function that let them take extra funds before the first withdrawal finished. The fourth involved stealing the wallet that controlled a protocol and using it to take ownership of vaults.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by Olympix

View all

24 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.