Moontok
All news

SlowMist: EOS token on BSC exploited via burn function flaw, about $68,700 lost

Published Source: Jinse Finance

SlowMist issued a security alert stating that an EOS token on BSC was attacked due to a calculation logic error in its `_burn()` function, with losses of about $68,700.

Specifically, when deducting the reflection unit balance `_rOwned` and total supply `_tTotal`, the token's burn function did not adjust `_rTotal` accordingly. The attacker exploited this flaw to artificially inflate the EOS balance reported by the trading pair after two burn operations and a `sync()` call, without actually transferring in EOS. The PancakeSwap pair contract recognized the inflated balance as an incoming asset and, after passing the constant product (K) check, released WBNB, resulting in the theft of funds.

AI-translated summary. Check important details with the original source.