Replay Attacks

Published by Mario Oettler on

Last Updated on 3. May 2023 by Martin Schuster

If a fork occurs and the chain splits into chain 1 and chain 2, funds are available on both branches. Also, the private keys are valid on both branches. This could lead to an attack called a replay attack.

If a user creates a transaction on chain 1 transferring 1 coin from its address A to address B it needs to sign this transaction with the corresponding private key.

But the owner of address B could take this transaction and its signature and propagate it on chain 2. Since the funds still exist on chain 2, this transaction would be valid together with the signature. Miners would execute it and transfer the funds to address B on chain 2.

The attacker (B) literally replayed this transaction on the other branch.

Software engineers need to take care of this attack when introducing a fork. They could require transactions to include a chain id.

Users can protect themselves by transferring their funds at least from one chain to another address they own.

Categories:

https://blockchain-academy.hs-mittweida.de/wp-content/uploads/2021/04/logo_bcam_rgb_gross.png

Welcome

Blockchain Academy

Continue with credential

No account yet?

Powered by Hidy

Register with Hidy


Register
Sign in

We need the following credential to register:

please select:

To create a new account, we need the following data from you:

We would appreciate the following additional information from you for the creation of your account:

Welcome

Blockchain Academy

Continue with credential

Already have an account?

Powered by Hidy

Sign in with Hidy


Register
Sign in

We need the following credential to log in:

please select: