Maya Protocol Hack

Reported loss $1.7M
Mayachain
Other

What happened

Maya Protocol halted MAYAChain after a chained accounting exploit let an attacker drain about $1.7 million in bitcoin and other assets. A technical reconstruction found that an overwritten observed-transaction record caused a false theft condition; an uncapped compensation calculation then credited a thin pool with unfunded CACAO. The attacker acquired near-total ownership of the distorted pool and exchanged its inflated CACAO for real assets.

How it happened

  1. A batched deposit overwrote the shared observed-transaction record used for earlier actions, causing MAYAChain to treat a legitimate outbound transfer as missing.
  2. The false theft condition invoked a compensation path that credited roughly 49 million CACAO to a thin pool despite the reserve holding only about 168,000 CACAO.
  3. The funding transfer failed, but the inflated pool balance remained in state rather than being rolled back.
  4. The attacker added a small amount of liquidity, gained more than 99% of the distorted pool, withdrew 48.87 million CACAO, and swapped it for bitcoin and other assets.
  5. MAYAChain halted trading while the project investigated and worked on a fix.

Protocol details

Classification Bridge / Protocol Logic
Protocol Type Cross Chain Bridge
Category Bridge Hack
Implementation language Go
Protocol links Website @Maya_Protocol

Security review history

Build your security review skills

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