Skip to content
Misconfiguration Audit finding Beginner

Incorrect celestia bridge keyring flag causes network partition in data availability layer

The Celestia bridge implementation uses the wrong command-line flag for keyring authentication, so bridge nodes fail to authenticate for data availability proofs. This could cause a network partition where affected nodes cannot validate DA proofs consistently with the rest of the network.

Rhaydden Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#41235 [BC-Insight] Incorrect celestia bridge keyring flag causes network partition in data availability layer

Submitted on Mar 12th 2025 at 19:40:36 UTC by @Rhaydden for Attackathon | Movement Labs

Description

Brief/Intro

A configuration error in the Celestia bridge implementation uses the incorrect flag --keyring.keyname instead of --keyring.accname for validator authentication. This misconfig causes bridge nodes to fail proper authentication for data availability (DA) proofs, leading to a network partition where affected nodes cannot properly validate DA proofs. In production, this would result in inconsistent DA validation states across the network.

Vulnerability Details

If we take a look at local.rs, the run method uses an incorrect flag for keyring authentication:

Rust
098: 		commander::run_command(
099: 			"celestia",
100: 			&[
101: 				"bridge",
102: 				"start",
103: 				"--node.store",
104: 				&node_store,
105: 				"--gateway",
106: 				"--core.ip",
107: 				&config.bridge.celestia_rpc_connection_hostname,
108: 				"--keyring.keyname",    ❌
109: 				"validator",
110: 				"--gateway.addr",
111: 				&config.bridge.celestia_websocket_listen_hostname,
112: 				"--rpc.addr",
113: 				&config.bridge.celestia_websocket_listen_hostname,
114: 				"--log.level",
115: 				"error",
116: 			],

Even the doc indicates the correct flag should be --keyring.accname, but the implementation uses --keyring.keyname. This causes the bridge to look for validator credentials in the wrong keyring location leading to authentication failures.

The fix is to use the correct flag:

Diff
             "--gateway",
             "--core.ip",
             &config.bridge.celestia_rpc_connection_hostname,
-            "--keyring.keyname",
+            "--keyring.accname",
             "validator",
             "--gateway.addr",
             &config.bridge.celestia_websocket_listen_hostname,

Impact Details

This fallls under "unintended chain split (network partition)" with the following specific impacts:

  1. Network Partition Effect:
  • Nodes using correct keyring.accname continue normal operation
  • Nodes using incorrect keyring.keyname fail DA validation
  • Creates inconsistent network state for DA proofs

Also leads to compromised DA proof validation, affected bridge nodes fail to properly authenticate& DA layer becomes unreliable for affected nodes.

References

https://github.com/immunefi-team/attackathon-movement//blob/a2790c6ac17b7cf02a69aea172c2b38d2be8ce00/protocol-units/da/movement/protocol/celestia-runners/src/celestia\\_bridge/local.rs#L108

https://github.com/immunefi-team/attackathon-movement//blob/a2790c6ac17b7cf02a69aea172c2b38d2be8ce00/protocol-units/da/movement/protocol/celestia-runners/src/celestia\\_bridge/local.rs#L91

Proof of Concept

Proof of Concept

To demonstrate this,

  1. setup
Rust
# Initialize bridge with incorrect flag
celestia bridge init --node.store <store_path>
  1. Start bridge with incorrect flag:
Rust
celestia bridge start \
  --node.store <store_path> \
  --gateway \
  --keyring.keyname validator  # Incorrect flag
  1. Verify failure:
  • Bridge fails to properly authenticate
  • Check logs for authentication errors
  • Verify DA proof validation failures
  • Observe network partition in DA layer
  1. Compare with correct configuration:
Rust
celestia bridge start \
  --node.store <store_path> \
  --gateway \
  --keyring.accname validator  # Correct flag
  1. Note the difference in behavior and authentication success between correct and incorrect configurations.

The original report as published on Immunefi, by Rhaydden. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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

How it worked

Impact

This could cause an unintended chain split (network partition) where nodes using the correct flag continue normally while nodes using the incorrect flag fail DA validation, leading to inconsistent DA proof validation.

What the attacker needed

Celestia bridge node running the affected code

The fix

The flag should be changed from `--keyring.keyname` to `--keyring.accname`.

How it was found

  1. Initialise the bridge with the incorrect flag.
  2. Start the bridge with the incorrect keyring flag.
  3. Observe authentication errors and DA proof validation failures.
  4. Compare with the correct keyring flag to see the difference.

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 report has not been written yet. The Original tab links to the source.

A bridge node helps move data between two blockchains. It needs to log in with a key stored in a keyring, which is like a password manager for cryptographic keys. The code asked for the key by the wrong name, so the login failed and the node could not do its job, which could split the network.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Rhaydden

View all

36 more disclosed reports, best first.

More from Movement Labs

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.