All vulnerabilities
CRITICALWeb3exploited in the wild

WEB3-WINTERMUTE-2022

Web3 · Ethereum · Wintermute

Summary

On September 20, 2022, market maker Wintermute lost about $160M from its DeFi operations due to the Profanity vanity-address vulnerability (CVE-2022-40769). Wintermute's admin EOA used an address generated by the Profanity tool, which seeded its key generation with only a 32-bit value fed through a Mersenne Twister PRNG, collapsing the effective keyspace from 2^256 to about 2^32 (~4 billion) and making the private key brute-forceable. Attackers precomputed candidate keys and reversed Profanity's deterministic iteration to reconstruct the private key of the vanity admin address, then used its retained admin/owner privilege over Wintermute's vault contract to drain it. A contributing error was Wintermute's failure to retire the Profanity-generated admin account after the public 1inch disclosure on September 15, 2022 (five days before the hack) warned that such addresses were unsafe. The attacker was never identified and a 10% bounty offer to return the funds was refused.

How to avoid it in your code

  • Never derive keys from weak or low-entropy seeds; use audited CSPRNGs with full 256-bit entropy.
  • Avoid vanity-address generators; immediately retire any address from a known-vulnerable tool like Profanity.
  • Hold admin/owner privileges in MPC/HSM-backed multisig rather than a single EOA.
  • Rotate privileged keys and remove stale admin addresses promptly after any disclosure.
  • Monitor vault admin actions and alert on owner/privilege use from a deprecated address.

References

Related vulnerabilities

All Web3 →