Skip to content
Business logic Write-up Advanced

Critical ($100k) bug that could allow an attacker to drain the en

In a Dogecoin light-client contract, the AuxPoW submission path unconditionally disabled proof-of-work target validation for the child header, so an attacker could submit a header with an attacker-chosen minimum difficulty. Because the bridge trusted that forged canonical state, the attacker could prove inclusion of a fabricated deposit and mint bridge assets that were never backed by a real Dogecoin deposit.

0 day exploit Follow

Published on medium.com

While reviewing the Dogecoin path in a light-client implementation, I found a single control-flow decision that materially weakened header validation.

0 day exploit, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The AuxPoW branch set a skip flag that bypassed the child header's difficulty check, and the parent proof-of-work was then validated against the attacker's own chosen target, making the check circular.

Impact

An attacker could forge canonical chain state and mint bridge assets against a deposit that never occurred, potentially exposing the whole bridge pool in a single path; the author notes the parent block could be mined in about a second on commodity hardware.

What the attacker needed

Ability to submit block headers; cheap mining of a parent block; no real deposit needed

The fix

AuxPoW checks should be additive: never skip the child header's difficulty validation just because AuxPoW data is present, and lock this in with regression tests; the text says the related pull request was merged on 18 March 2026.

How it was found

  1. Pick a fake Dogecoin transaction that never existed on the real chain.
  2. Compute a forged Merkle root so inclusion verification passes for that fake transaction.
  3. Build a Dogecoin header pointing at the current tip but with attacker-chosen minimum-difficulty bits.
  4. Wrap it in AuxPoW data that satisfies the parent check.
  5. Submit the forged block, which the light client accepts as canonical.
  6. Call the deposit verification flow with the fake proof, and the bridge mints assets.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A light client is a small program that checks block headers instead of the whole blockchain, and other contracts trust it to say what really happened on the chain. Here, when a block arrived with extra proof data (AuxPoW), the code switched off the normal check that the block's difficulty was the one the network requires. That let someone make a fake block cheaply, claim a deposit that never happened, and have the bridge hand out tokens for it.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.