Code4rena Identifies Vulnerability in DittoETH

user avatar

by Giorgi Kostiuk

2 years ago

Made with AI


  1. Vulnerability Discovery
  2. Mechanism of the Vulnerability
  3. Countermeasures and Consequences

  4. The decentralized auditing platform Code4rena discovered a vulnerability in an upcoming patch of the DittoETH algorithmic stablecoin platform. The exploit would have allowed a user with a large amount of deposited tokens to make excessive profits, increasing bad debts in the protocol and ultimately compromising its ability to survive.

    Vulnerability Discovery

    The vulnerability was identified by Code4rena, a crowd-sourced auditing platform. This discovery ensures that the vulnerability will not be added to the production version of DittoETH, as it has been mitigated in a newer test version.

    Code4rena's participants are divided into three groups: sponsors, wardens, and judges. Sponsors are Web3 protocols that offer rewards for discovering vulnerabilities. Wardens compete to discover vulnerabilities in exchange for prize money. Judges adjudicate disputes between sponsors and wardens about whether a vulnerability is real and its severity.

    Mechanism of the Vulnerability

    According to a report from one of the Code4rena wardens, the vulnerability was related to a faulty mechanism for distributing stablecoin rewards to depositors in DittoETH's yDUSD vault. Users can add the stablecoin dUSD to this vault to receive a yield.

    The warden discovered a mathematical flaw in the "matchIsDiscounted" function that could create large amounts of debt from a small amount of trading volume, contradicting the protocol's intended design. This could lead to disproportionate new debt creation and token minting.

    Countermeasures and Consequences

    After identifying the vulnerability, the warden posted an explanation on the project's GitHub. Initially, the DittoETH team and at least one Code4rena judge claimed that an attacker would not be able to create bad debt because other members would join the pool and "dilute" the attacker's gains.

    However, further tests demonstrated that the attack was indeed possible, allowing the attacker to gain significant profits. Ultimately, the judge confirmed the vulnerability, and the DittoETH representatives acknowledged its validity.

    This vulnerability concerned a non-production copy of the protocol's code. However, if it had been missed, it could have been deployed to the blockchain and exploited by attackers.

    The discovered vulnerability in the DittoETH platform highlights the importance of thorough and regular audits to ensure the security of DeFi protocols. In this case, the prompt actions of Code4rena helped prevent potential financial losses and damage to the platform's reputation.

Tier I

Sector: #18291

Sealed Hiding Place Room

Resource Cache

Resource Cache

Tier I

Requires 25% Tier Progress to Claim
Meme Cache

Meme Cache

Tier I

Requires 50% Tier Progress to Claim
Equipment Cache

Equipment Cache

Tier I

Requires 75% Tier Progress to Claim

After collecting, hiding places will be stored in your inventory and can be opened with Keys.

Other news

SpaceX Falcon 9 Launch Scheduled for October 19

SpaceX is preparing for a Falcon 9 rocket launch from Cape Canaveral on October 19, 2026, at 6:30 AM ET, which may create a jellyfish effect. Weather conditions currently pose a threat with only a 55% chance of favorable conditions.

user avatarRajesh Kumar

Cardano's Stablecoin Market Surpasses 702 Million

As of October 18, Cardano's stablecoin market has reached a notable milestone, with the total supply of dollar-pegged tokens hitting approximately 702 million.

user avatarFilippo Romano

Aptos Reports Token Burn and Staking Emissions

Aptos has burned approximately 174,570 APT in the last 30 days while issuing around 15 million APT through staking.

user avatarEmily Carter

Cross River Bank Integrates Ripple's RLUSD Stablecoin for Enhanced Payment Solutions

Cross River Bank integrates Ripple's RLUSD stablecoin to enhance payment solutions for fintech customers.

user avatarTomas Novak

Stocklinked Tokens in DeFi Surge to $2.624 Billion

Stocklinked tokens in decentralized finance reached approximately $2.624 billion by the end of September 2026, marking an 18-fold increase from the beginning of the year.

user avatarKaterina Papadopoulou

Fidelity's Assessment Highlights Solana's Improved Reliability

Fidelity's assessment indicates Solana has operated for over two years without major outages, achieving a 99.7% vote success rate, but warns of concerns regarding validator concentration.

user avatarMaya Lundqvist

Important disclaimer: The information presented on the Dapp.Expert portal is intended solely for informational purposes and does not constitute an investment recommendation or a guide to action in the field of cryptocurrencies. The Dapp.Expert team is not responsible for any potential losses or missed profits associated with the use of materials published on the site. Before making investment decisions in cryptocurrencies, we recommend consulting a qualified financial advisor.