• News
    • Bitcoin
    • Altcoins
    • Blockchain
    • DeFi
    • Regulation
    • Scams
  • NFT
  • Metaverse
  • Analysis
  • Learn
  • Videos
  • Blogs
  • Market Cap
  • Shop
What's Hot

Bitcoin’s Bullish Move Sets the Stage for These Must-Watch Crypto Projects

2025-05-13

What Is Proof-of-Work (PoW) in Blockchain? A Beginner-Friendly Guide

2025-05-12

They Told You NOT to Buy the Bitcoin

2025-05-12

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

Facebook Twitter Instagram
Crypto Investor News Network
  • News
    • Bitcoin
    • Altcoins
    • Blockchain
    • DeFi
    • Regulation
    • Scams
  • NFT

    All Eyes on Art: Upcoming Collections to Watch the Week of February 4

    2025-02-05

    Creator of rabbit AI assistant has hidden NFT past

    2024-05-02

    Ethereum tops daily NFT sales at US$7 mln, ends weakest month of 2024

    2024-05-02

    Top NFT Airdrops and Giveaways for May 2024

    2024-05-02

    Casio Launches NFT Collection Celebrating 50th Anniversary

    2024-05-01
  • Metaverse

    Shib: The Metaverse – Part of the Expanding Shiba Inu Ecosystem

    2025-01-03

    Experience to Earn: Everdome’s Metaverse Frontier

    2024-12-30

    Beyond Bots: Meta Motivo and the Dawn of Humanlike Digital Life

    2024-12-13

    Exploring NetVRk: What Is Behind This AI-Driven Virtual Universe?

    2024-10-28

    Council of Europe Highlights Metaverse’s Impact on Privacy and Democracy

    2024-09-05
  • Analysis

    Crypto Exchange Coinbase Lists New DeFi Altcoin Project Built on Base Blockchain

    2023-12-13

    Ethereum Price Bears Keep Pushing, Why Decline Isn’t Over Yet

    2023-12-13

    Trader Bullish on Cosmos (ATOM), Says One Dogecoin Rival Setting Up for Next Leg Up – Here’s His Outlook

    2023-12-13

    AVAX Price Pumps 50% and Dumps 15%, Why Uptrend Is Still Strong

    2023-12-13

    Top Trader Predicts Parabolic Rally for Solana Competitor – Here’s His Upside Target

    2023-12-13
  • Learn

    What Is Proof-of-Work (PoW) in Blockchain? A Beginner-Friendly Guide

    2025-05-12

    What is Proof-of-Authority (POA) Consensus in Blockchain?

    2025-05-09

    What Is Proof-of-Stake (PoS)? Guide to Blockchain Consensus for Beginners

    2025-05-09

    What is a Layer-1 (L1) Blockchain? L1 Problems & Future

    2025-05-03

    What is a Layer-2 (L2) Blockchain Solution? Types & Problems They Solve

    2025-05-02
  • Videos

    Bitcoin’s Bullish Move Sets the Stage for These Must-Watch Crypto Projects

    2025-05-13

    They Told You NOT to Buy the Bitcoin

    2025-05-12

    Bitcoin Nodes, Censorship, and Big Blockheads

    2025-05-12

    💼 The Investing Game Has Changed! 🌐🚨

    2025-05-11

    Is It Safe To Run Bitcoin Core?

    2025-05-11
  • Blogs
  • Market Cap
  • Shop
Facebook Twitter Instagram TikTok
Crypto Investor News Network
Home»DeFi»Platypus attack exploited incorrect ordering of code, auditor claims
DeFi

Platypus attack exploited incorrect ordering of code, auditor claims

2023-02-20No Comments3 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
Share
Facebook Twitter LinkedIn Pinterest Email

Disclaimer: The article has been updated to reflect that Omniscia did not audit a version of the MasterPlatypusV4 contract. Instead, the company audited a version of the MasterPlatypusV1 contract from Nov. 21 to Dec. 5, 2021.

The $8 million Platypus flash loan attack was made possible because of code that was in the wrong order, according to a post-mortem report from Platypus auditor Omniscia. The auditing company claims the problematic code didn’t exist in the version they audited.

In light of the recent @Platypusdefi incident the https://t.co/30PzcoIJnt team has prepared a technical post-mortem analysis describing how the exploit unravelled in great details.

Be sure to follow @Omniscia_sec to receive more security updates!https://t.co/cf784QtKPK pic.twitter.com/egHyoYaBhn

— Omniscia (@Omniscia_sec) February 17, 2023

According to the report, the Platypus MasterPlatypusV4 contract “contained a fatal misconception in its emergencyWithdraw mechanism,” which made it perform “its solvency check before updating the LP tokens associated with the stake position.”

The report emphasized that the code for the emergencyWithdraw function had all of the necessary elements to prevent an attack, but these elements were simply written in the wrong order, as Omniscia explained:

“The issue could have been prevented by re-ordering the MasterPlatypusV4::emergencyWithdraw statements and performing the solvency check after the user’s amount entry has been set to 0 which would have prohibited the attack from taking place.”

Omniscia audited a version of the MasterPlatypusV1 contract from Nov. 21 to Dec. 5, 2021. However, this version “contained no integration points with an external platypusTreasure system” and therefore did not contain the misordered lines of code.

It is important to note that the code that was exploited did not exist at the time of Omniscia’s audit. Omniscia’s point of view implies that the developers must have deployed a new version of the contract at some point after the audit was made.

See also  Oracles are Integral to Defi’s Growth, and the Stakes are High

Related: Raydium announces details of hack, proposes compensation for victims

The auditor claims that the contract implementation at Avalanche C-Chain address 0xc007f27b757a782c833c568f5851ae1dfe0e6ec7 is the one that was exploited. Lines 582–584 of this contract appear to call a function called “isSolvent” on the PlatypusTreasure contract, and lines 599–601 appear to set the user’s amount, factor and rewardDebt to zero. However, these amounts are set to zero after the “isSolvent” function has already been called.

The Platypus team confirmed on Feb. 16 that the attacker exploited a “flaw in [the] USP solvency check mechanism,” but the team did not initially provide further detail. This new report from the auditor sheds further light on how the attacker may have been able to accomplish the exploit.

The Platypus team announced on Feb. 16 that the attack had occurred. It has attempted to contact the hacker and get the funds returned in exchange for a bug bounty. The attacker used flashed loans to perform the exploit, which is similar to the strategy used in the Defrost Finance exploit on Dec. 25, 2022.

Attack auditor claims code exploited Incorrect ordering Platypus
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

Bitcoin 6102 Attack?

2025-03-25

Bitcoin Is Under ATTACK – How BlackRock Could Change Bitcoin FOREVER

2025-01-12

Crypto Under Attack: Global Regulator’s Secret Plan Revealed!

2024-10-24

BloFin Crypto Exchange HONEST review and Bonus Code – No KYC!!

2024-10-23
Add A Comment

Leave A Reply Cancel Reply

Top Posts
Videos

After Bitcoin…This is BlackRock’s Secret Crypto Play

2024-04-04

Today let’s look at Bitcoin and talk about Blackrock’s next area of interest…RWA. Bitunix Exchange…

Regulation

China’s new generative AI regulation sets guidelines to promote values of ‘socialism’

2023-07-13

The Cyberspace Administration of China (CAC), the nation’s lead internet regulator, has unveiled the country’s…

Analysis

Crypto Analyst Sees Positive News for Bitcoin (BTC) Traders Despite Market-Wide Drop

2023-08-18

A widely followed crypto trader is maintaining a positive sentiment on Bitcoin (BTC) despite the…

Subscribe to Updates

Get the latest news and Update from CINN about Crypto, Metaverse and NFT.

Editors Picks

Bitcoin’s Bullish Move Sets the Stage for These Must-Watch Crypto Projects

2025-05-13

What Is Proof-of-Work (PoW) in Blockchain? A Beginner-Friendly Guide

2025-05-12

They Told You NOT to Buy the Bitcoin

2025-05-12

Bitcoin Nodes, Censorship, and Big Blockheads

2025-05-12
Crypto Investor News Network
Facebook Twitter Instagram TikTok
  • Contact
  • Terms & Conditions
  • Privacy Policy
  • DMCA
  • Disclouser
© 2025 - All rights are reserved.

Type above and press Enter to search. Press Esc to cancel.

bitcoin
Bitcoin (BTC) $ 102,036.34
ethereum
Ethereum (ETH) $ 2,540.83
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.48
bnb
BNB (BNB) $ 646.46
solana
Solana (SOL) $ 171.30
usd-coin
USDC (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.225495
cardano
Cardano (ADA) $ 0.773529
tron
TRON (TRX) $ 0.269724