blog

Explained: The Boy X Highspeed (BXH) Rug Pull (September 2022)

Category: Explained: Hacks

Explained: The Boy X Highspeed (BXH) Rug Pull (September 2022)

POSTED BY: Rob Behnke

09.29.2022

In September 2022, the Boy X Highspeed (BXH) project experienced an alleged rug pull. According to BSC Daily News, an estimated $12.5 million was extracted from the protocol, but other estimates place it at approximately 1,865 ETH or $2,433,665.79.

Inside the Attack

The BXH staking pool smart contracts on BSC, Avalanche, and HECO Chain include a privileged function named inCaseTokensGetStuck, shown below. The function is labeled as public with an onlyEmergencyWithdraw restriction. If called after the beta, the function would allow transfers of tokens held within the pool to a specified address.

An attacker invoked this privileged function on all three chains, draining tokens from the staking pools and transferring all stolen tokens to Ethereum. The stolen funds were then laundered via Tornado Cash.

Lessons Learned From the Attack

Centralized functions such as the inCaseTokensGetStuck functions in these contracts represent a serious security risk in smart contracts. While this incident is alleged to be a phishing attack, these functions can also be abused by the team behind the project in rug pulls.

Security vulnerabilities like this function can and should be identified and remediated as part of smart contract security audits. Learn more about scheduling a smart contract security audit for your project by reaching out to our Web3 security experts at halborn@protonmail.com.

Related Blog Posts

No related posts.

© Halborn 2024. All rights reserved.