Leaderboard
1267All-time rank
Yapeswap logo

Yapeswap

Oct 25, 2026

$22K
Lost
$22K
Recovered
$0
Net loss
$22K
Unrecovered0% recovered

000055% of voting power to transfer YapeFactory’s feeToSetter role to themselves. The attacker then installed a malicious Registry that returned fake vault addresses through latestVault(), while vaults() continued listing legitimate vaults.

This redirected deposits into attacker-controlled destinations while YapePair incorrectly accounted for them as farming assets, resulting in approximately $21,900 in losses.

How the exploit worked

View reproducible PoC

latestVault(token) returns and credits every token it ships out back to farming[token] so its keepBalance invariant (erc20 balance + farming) still holds after the real tokens have left, so anyone can buy a dust amount of the freely-traded YAPE, lock it for sqrt-weighted voting power, pass a proposal that moves feeToSetter to themselves through real voting and the timelock, swap in a registry pointing at a vault they own, and force a 100% rebalance that ships every pair's reserves straight to the attacker.

Lost: ~$21.9K drained from six Yapeswap pairs on Ethereum; the attacker contract received DAI 1,691.8, USDC 2,286.2, USDT 8,386.3, WETH 10.516 and WBTC 0.0316. Thi…

Source: DeFiHackLabs (SunWeb3Sec)

Target
DeFi
Classification
Governance
Technique
Malicious Proposal
Attribution
Unknown
Chains
Ethereum

Event timeline

  1. Oct 25, 2026
    Exploit executed — $22K drained via malicious proposal
  2. Attributed to Unknown
  3. Recovery status Unrecovered 0%

Data credits

Related incidents