Cypher Hack

Reported loss $1.0M
Solana
Unknown

What happened

On August 7, 2023, Cypher Protocol on Solana suffered an estimated $1 million exploit. A smart-contract state-tracking and margin-check failure let an attacker take loans that should have been disallowed; Cypher froze its contracts while investigating.

How it happened

  1. Cypher primary accounts could have sub-accounts; normally their collateral was shared, but isolated sub-accounts were intended to disable that sharing.
  2. Switching a sub-account to isolated state did not update the primary account's cached state.
  3. A separate error in the borrow margin checks, together with inactive oracle price feeds, allowed borrowing when it should have been rejected.
  4. The attacker used multiple primary accounts to take bad loans, leaving the protocol with the resulting debt; Cypher froze its contracts after the incident.

Protocol details

Classification Oracle Manipulation / Exchange (DEX)
Protocol Type Derivatives

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.