Skip to content
Business logic Write-up Advanced

Immunefi Banned Me for Reporting a Real Replay Attack in LayerZe

The author claims that LayerZero V2's lzReceive() does not track message identifiers, so a previously accepted cross-chain message can be replayed to trigger operations such as token crediting repeatedly. They say their proof of concept used deployed contract logic but was rejected and they were banned by Immunefi.

Tangouvitch Follow

Published on medium.com

I reported a real vulnerability that allows infinite replay of valid messages in LayerZero V2 due to the lack of guid tracking in lzReceive(). My proof-of-concept was complete, reproducible, and referenced deployed contracts — but Immunefi rejected it without a technical rebuttal and banned me permanently.

Tangouvitch, 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

Likely the receiving contract does not record or check the unique message identifier (guid) before processing, so the same accepted message can be delivered more than once.

Impact

An attacker could replay a valid message indefinitely to re-trigger operations such as crediting tokens, according to the author; the text does not show an independent confirmation or any limiting defence.

What the attacker needed

A previously accepted cross-chain message; ability to resubmit that message

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.

When two blockchains talk to each other, a message is supposed to be processed only once. If the receiving side does not remember which messages it has already seen, someone can send the same valid message again and again, and each time it may be treated as new. The author says this is what happens here, allowing repeated token credits.

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.