Flash loan exploit appears to be behind Platypus USD stablecoin attack

Quick Take

  • Platypus’ stablecoin, Platypus USD, suddenly dropped more than 52%, and the on-chain evidence points to a flash loan exploit.

Platypus USD (USP) lost its dollar parity on Thursday following an apparent exploit that allowed a wallet to siphon off about $8.5 million from the token's liquidity pools, just weeks after Platypus issued the stablecoin.

The presumed hack was accomplished by means of a flash loan exploit, during which an attacker takes out an enormous loan and settles it in the same block, sandwiching transactions that use the capital to exploit other protocols in between. The Platypus swap function on the network has been disabled since the attack. 

“There has been a flash-loan attack on USP," a pinned message in the official Platypus Telegram channel warns users. "We are currently trying to assess the situation and will communicate promptly on it. For now all operations are paused until we get more clarity.”

The alleged attacker appears to have taken out a $44 million flash loan from Aave V3, and in turn minted some 41 million US Platypus tokens. Next, the attacker cashed out some $8.5 million into other stablecoins, and paid back the flash loan. These actions all took place in the same block of transactions, on-chain data show.

“The vulnerability lies in the solvency checking in the function emergencyWithdraw of the MasterPlatypusV4 contract,” web3 security firm Certik told The Block.

“The solvency check doesn’t take into account the value of the user’s debt. It only checks whether the debt amount has reached the max limit,” Certik said. “After the solvency check passes, the contract allows the user to withdraw all deposited assets.”

The borrowing history of the attacker address.

THE SCOOP

Keep up with the latest news, trends, charts and views on crypto and DeFi with a new biweekly newsletter from The Block's Frank Chaparro

By signing-up you agree to our Terms of Service and Privacy Policy
By signing-up you agree to our Terms of Service and Privacy Policy

With the pool’s liquidity drained in the previous block, the remaining 33 million tokens reside in attacker’s wallet, unable to be traded.

USP is now trading around $0.47 after dropping by just over 52%.

Chart data from CoinGecko.

Platypus did not immediately respond to a request for comment from The Block.

Correction: Updated to correct Platypus' formal name. 


© 2023 The Block. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

About Authors

Jeremy Nation is a senior reporter at The Block covering the greater blockchain ecosystem. Prior to joining The Block, Jeremy worked as a product content specialist at Bullish and Block.one. He also served as a reporter for ETHNews. Follow him on Twitter @ETH_Nation.
Osato is a news reporter at The Block as part of the crypto ecosystems team that focuses on DAO governance, staking, blockchain layers, and DeFi. He was previously a news reporter at Cointelegraph. Based in Lagos, Nigeria, he enjoys crosswords, poker, and attempting to beat his Scrabble high score. Follow him on Twitter at @OsatoNomayo.

Editor

To contact the editors of this story:
Madhu Unnikrishnan at
[email protected]
Nathan Crooks at
[email protected]