ASKACR Token Hack

Reported loss $29K
Flash Loan Attack

What happened

On March 21, 2023, the ASKACR token on BNB Smart Chain was exploited through its reward logic. The attacker's profit was about 28,633 BSC-USD (USDT). CertiK put it at about $28K, and BlockSec reported a loss of about 85 BNB. CertiK reported the token's price dropped 98%, and Neptune Mutual later said it fell more than 99%.

According to BlockSec, ASKACR's transfer function paid rewards to holders of BSC-USD/ASKACR LP tokens on every transfer without checking the transfer amount. Neptune Mutual traces this through _beforeTokenTransfer into _lpShare. So a transfer of 0 ASKACR to an address holding LP tokens still paid that address a reward share. The attacker used one flash-loan-funded LP position and passed it through many freshly created contracts, collecting a new reward at each stop.

The live record says the flash loan came from Balancer and that the profit came from buying low and selling high. The transaction shows otherwise: the 160,000 BSC-USD loan came from pool 0x26d0...5618, and the profit came from the reward payouts.

Attacker: 0xb1899430b21f646b1b298a3f0c0707ea4047c53e

Attack contract: 0x559a352d205d5df7cd8021891ab9c680f7f278e2

Exploit transaction: 0xc20fa4953ff394bb806a57cafe71d1163973c0e5a47bb8dad1703a518b15ea3b

How it happened

  1. The attack contract flash-borrowed 160,000 BSC-USD from pool 0x26d0...5618.
  2. It swapped 80,000 BSC-USD for about 7,602 ASKACR, then added 80,000 BSC-USD and about 2,074 ASKACR as liquidity, minting about 11,031 LP tokens (11,020.87 of which were used in the loop).
  3. It passed the 11,020.87 LP tokens among about 20 newly created helper contracts, roughly 175 hand-offs in all. At each stop a 0-ASKACR transfer to the current LP holder made the token contract pay it an LP reward, often around 10,000 ASKACR, which the helper forwarded to the attack contract.
  4. With the LP tokens back, the attack contract removed the liquidity for about 77,150 BSC-USD and sold about 265,323 ASKACR into the pair for about 111,483 BSC-USD.
  5. It repaid the 160,000 BSC-USD loan and sent 28,633.09 BSC-USD to the attacker's address. The reward-funded dump crashed the ASKACR price.

Protocol details

Classification Token
Protocol Type Exploit/Flash Loan Attack
Affected asset / contract ASKACR

Understand the attack patterns

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.