Skip to content
Access control Write-up Advanced

0x0d9, Yieldbox, and Holdstation Exploits: $10.64M

Three separate exploits caused over $10.6M in losses: 0x0d9 lost $180K because empty signature arrays bypassed authorization checks, YieldBlox lost $10M due to a low-liquidity oracle being manipulated to inflate collateral prices, and Holdstation lost $462K after a compromised developer key allowed a malicious contract upgrade.

medium.com

Published on medium.com

0x0d9 lost $180K after empty signature arrays bypassed authorization checks. YieldBlox lost $10M when a low-liquidity oracle allowed an attacker to inflate collateral prices and overborrow.

Olympix, on 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

Root cause

Likely the 0x0d9 contract's signature verification only checked that the lengths of two arrays matched, so empty arrays passed; YieldBlox used a volume-weighted average price oracle on a market with almost no activity, making it easy to manipulate; Holdstation's upgrade key was exposed via a malicious IDE extension.

Impact

The three exploits together caused over $10.6M in losses: $180K from 0x0d9, $10M from YieldBlox, and $462K from Holdstation.

What the attacker needed

None for 0x0d9; low-liquidity market for YieldBlox; compromised developer key for Holdstation

How it was found

  1. For 0x0d9: the attacker submitted empty allSigners and signatures arrays.
  2. The contract treated the request as verified, bypassing signature authorization.
  3. The attacker withdrew funds.
  4. For YieldBlox: the attacker deposited 13,003 USTRY.
  5. The attacker borrowed 1,000,196 USDC.
  6. The attacker added 140,000 more USTRY as collateral and borrowed 61,249,278 XLM to make a profit.

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.

These are three separate attacks on cryptocurrency systems. In the first, a check that was supposed to verify signatures could be fooled by providing empty lists, letting an attacker withdraw funds. In the second, a price feed based on very few trades was easily pushed up, so the attacker could borrow far more than they should. In the third, a stolen developer key let an attacker replace a contract with a malicious one and take funds.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.