SpankChain, a cryptocurrency project focused on the adult industry, has suffered a breach that saw almost $40,000 in ethereum (ETH) stolen.
In a blog post published Tuesday, the SpankChain team disclosed the hack, saying 165.38 ETH (worth around $38,000 at the time) had been lost at around 18:00 PST on Saturday. The intrusion, which the post said was made possible by a bug in the networkâs payment channel smart contract, also caused $4,000 in SpankChainâs BOOTY token to be frozen.
It apparently took over 24 hours for the project to realize the hack had taken place, with the post stating:
âUnfortunately, as we were in the middle of investigating other smart contract bugs, we didnât realize the hack had taken place until 7:00pm PST Sunday, at which point we took Spank.Live offline to prevent any additional funds from being deposited into the payment channels smart contract.â
Of the cryptos stolen, $9,300 worth of ETH and BOOTY belonged to users, and the remainder to the project. According to the blog post, full refunds will be âsent directly to usersâ SpankPay accounts, and will be available as soon as we reboot Spank.Live.â
SpankChain warned of 2â3 daysâ delay ahead while its developers patch the issue behind the hack, redeploy a new smart contract and fix the other contract issues that were already being worked on. Limits on the use of BOOTY tokens have also been put in place temporarily.
So far, the team says, it seems the attack was due to a âreentrancyâ bug, similar to the one that allowed a major hack of The DAO crypto project in 2016.
âThe attacker created a malicious contract masquerading as an ERC20 token, where the âtransferâ function called back into the payment channel contract multiple times, draining some ETH each time,â the team said, adding that it will undertake an âin-depth investigation of the attackâ in the coming days.
SpankChain further conceded it had decided not to pay for a security audit for the payment channel contract due to the costs involved, However, âtaking into account both the perception value and opportunity cost of the time spent reacting to the hack, it would have been worth it,â the post says.
The firm concluded by pledging it would improve its security practices, âmaking sure to get multiple internal audits for any smart contract code we publish, as well as at least one professional external audit.â
Adult content image via Shutterstock