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.
- 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
- Report ID: #41235
- Report Type: Blockchain/DLT
- Report severity: Insight
- Target: https://github.com/immunefi-team/attackathon-movement/tree/main/protocol-units/da/movement/
- Impacts:
- Unintended chain split (network partition)
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:
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:
"--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:
- 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
Proof of Concept
Proof of Concept
To demonstrate this,
- setup
# Initialize bridge with incorrect flag
celestia bridge init --node.store <store_path>
- Start bridge with incorrect flag:
celestia bridge start \
--node.store <store_path> \
--gateway \
--keyring.keyname validator # Incorrect flag
- Verify failure:
- Bridge fails to properly authenticate
- Check logs for authentication errors
- Verify DA proof validation failures
- Observe network partition in DA layer
- Compare with correct configuration:
celestia bridge start \
--node.store <store_path> \
--gateway \
--keyring.accname validator # Correct flag
- Note the difference in behavior and authentication success between correct and incorrect configurations.
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
- Initialise the bridge with the incorrect flag.
- Start the bridge with the incorrect keyring flag.
- Observe authentication errors and DA proof validation failures.
- 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.