GenomesDAO Hack
What happened
GenomesDAO, a project built around monetising genomic data with DeFi, was attacked on Polygon on 6 August 2022. Its LPSTAKING contract had an initialisation function that anyone could call, and could call again. The attacker used it to swap the contract's staking token for a fake LP token, staked that worthless token, switched the staking token back, and withdrew the real LP tokens that other users had deposited. The existing record puts the loss at about $43,000; SlowMist's analysis gives no figure.
Three victim contracts are listed:
0x3606cFa43f53098BC00b3FCFF3A333F6947F3c920x28fc73E9D9f158E7DC57A4E81aa0175d6847f7140x48D1CcB09f771788F59c8aAAB613936eDfA267b7
Attacker: 0x43ec1d163cc4c15b574f86d8203c3b0f3ebed7a3
Attacker contracts: 0x8e10c9493501a828304d77630b6f862bbf50c052 and fake token 0x9aa63491bb927f024d37b0e6017137f7f03da3c6
Also listed: 0x074f3076ea2c16ef34b15114e751dcdc044ee2e9a26d762a2e96bf97a4509311, an anyMATIC-to-MATIC swap by the attacker.
How it happened
- The attacker deployed a fake LP token and called the public
initializedfunction onLPSTAKING, setting the contract'sstakingTokento that fake token. - They called
stakewith the fake LP tokens and received a large amount ofLPSTAKINGstaking certificates. - They called
initializedagain to setstakingTokenback to the real LP token. - They called
withdraw, burning the certificates and receiving the real LP tokens held by the contract. - They removed liquidity with those LP tokens on a DEX to take the underlying assets.
Protocol details
Evidence
- report Report en.0xzx.com
- report Report aliens.com
- transaction polygonscan.com transaction 0x074f…9311 polygonscan.com
- address polygonscan.com address 0x28fc…f714 polygonscan.com
- address polygonscan.com address 0x3606…3c92 polygonscan.com
- address polygonscan.com address 0x43ec…d7a3 polygonscan.com
- address polygonscan.com address 0x48D1…67b7 polygonscan.com
- address polygonscan.com address 0x8e10…c052 polygonscan.com
- address polygonscan.com address 0x9aa6…a3c6 polygonscan.com
- analysis Web Archive web.archive.org
- analysis PANews: SlowMist analysis of the GenomesDAO attack (Chinese) panewslab.com
- analysis SlowMist Hacked database, Polygon page 2: GenomesDAO hacked.slowmist.io
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.