Health Hack

Reported loss $9K
Other

What happened

Price of the HEALTH token in a Uniswap pool was manipulated allowing the attacker to take a 33 BNB profit.

The exploit was possible due to a bug in the internal _tranfer() function of the token contract that was causing decrease of HEALTH in the pool.

The attack was performed in three transactions. Each transaction involved the following steps:

  1. Taking a flash loan of 40 WBNB;
  2. Exchanging the borrowed amount to HEALTH;
  3. Calling 999 token transfers with 0 value. Due to the bug in _transfer(), the number of HEALTH in the pool decreased each time, hence the token price was increasing.
  4. Exchanging the inflated HEALTH token to WBNB with profit.
  5. Paying back the flashloan

The attacker contract:

Address 0x80e5…a2d4

The attack transactions:

Tx 0xae8c…6ccf

Tx 0x780f…266a

Tx 0x0daa…a462

Protocol details

Classification Token
Protocol Type Exploit/Other
Affected asset / contract HEALTH

Build your security review skills

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