A security breach on the $BNB Chain has resulted in the loss of approximately $35,041 from the DTXT/$USDT liquidity pool, according to blockchain security firm PeckShield. The incident, which targeted a vulnerability in the DTXT token contract, highlights ongoing risks within decentralized finance (DeFi) protocols, particularly those involving complex smart contract logic.
How the Exploit Worked
PeckShield’s analysis reveals that the core of the exploit lay in a flawed mechanism within the DTXT contract. The contract determined the type of transaction—whether a swap or a liquidity addition—by comparing its own $USDT balance with the amount of $USDT deposited into the trading pair. The attacker exploited this by sending a small amount of $USDT directly to the trading pair’s contract address. This manipulation caused a large sell order of DTXT tokens to be misidentified as a liquidity addition, effectively bypassing the transaction fee logic that would normally apply to a sell order.
To execute the attack, the exploiter took out a flash loan of 1,077,400 $USDT from the Moolah lending protocol. This capital was used to manipulate the pool’s state and execute the profitable trade, netting a profit of roughly 35,000 $USDT. Flash loans, which allow borrowing without collateral provided the funds are returned within a single transaction block, are a common tool in DeFi exploits.
bitcoinworld.co.in