Digital Asset
Intelligence
Security Incident · Wallet

wxBTRFLY Contract Vulnerability

·Historical incident record

Incident Overview

White hat hackers at @immunefi discovered a critical vulnerability in the wxBTRFLY Token contract. The transferFrom function in the contract did not update the recipient's authorization correctly, and would incorrectly update the msg.sender's authorization. Although the vulnerability itself is serious, the cause is not complicated (more like a clerical error produced by the developer). What is more interesting is the official repair method. Since the contract itself does not support upgrade, the contract code cannot be updated directly; the contract does not support suspension, so it is not possible to transfer user assets by means of snapshot + migration. The final official measure was to launch an attack transaction by itself, transferring the assets of all users affected by the vulnerability to a multi-signature wallet.

Sources & References

This record presents information attributed to the linked sources. Incident dates describe the original event, not a new report. Reported loss figures reflect the source record and are not current market valuations.

More Security Incidents

View All →
  1. Incident date
    Target

    LCX

    Attack methodWallet Stolen
    Reported loss$ 8,000,000
  2. Incident date
    Target

    Bitbns

    Attack methodWallet Stolen
    Reported loss$ 7,500,000
  3. Incident date
    Target

    KLAYswap

    Attack methodMalicious Code Injection Attack
    Reported loss$ 1,830,000
  4. Incident date
    Attack methodContract Vulnerability
    Reported loss$ 770,000
  5. Incident date
    Target

    CityDAO

    Attack methodAccount Compromise
    Reported loss29.67 ETH