Treasure Swap Hack
What happened
The Treasure Swap project has been exploited by hackers. Using the vulnerability, the hacker needed only 1 wei to exchange all the $WETH tokens in the transaction pool.
Treasure Swap is a donation protocol driven by the community to build a sustainable DAO.
The hacker noticed a vulnerability in the Treasure Swap contract, where in the swap function the check for the k-value of the constant formula k = a * b, which determines the price of the token (A) in the token (B), was skipped. The hacker noticed this vulnerability, deployed his malicious contracts on the network with which he began to steal the $WETH reserves from the protocol.
Example transactions of the exploit:
All stolen $BNB are still held on the hacker's wallet.
Hacker address: Address 0x0FaC…931D
Vulnerable contract addresses:
Malicious contract addresses:
Protocol details
Evidence
- report Report treasureswap.net
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.