Bounty
XE-2440 · Bounty

Directory registration accepts any libp2p peer id with no proof of node ownership — one client can bind unlimited accounts to an arbitrary victim node and poison identity routing

Closed · duplicate —claimed High web filed 2026-11-09 23:25 UTC by grizelshalom

Report

Claim

POST /directory/register validates only the FORMAT of node_peer (a parseable libp2p peer id), never that the reporter's account key owns that peer id. Any account can bind itself to an arbitrary victim node's peer id — taken straight from the public GET /node peer list — and there is no cap on how many accounts one client registers, so one client can point unbounded numbers of accounts at a single node and poison the identity→node routing table that chat delivery relies on.

Code

Network testnet-0005, node xe/3019b76. The signed message (xe/directory-registration/v1) covers account, pub_key, peer id and timestamp, but the node performs no check that the peer id derives from pub_key or is operated by the registrant:

  • TEST A (control): account + own derived peer id -> 200 ok
  • TEST B: fresh account + FOREIGN peer id copied from GET /node ("12D3KooWDcSxruuy3ZkvmpKEyg3XK7TwJmqtAQjVSvbjVuWGNMR2", a live public node) -> 200 ok — accepted with zero proof of ownership
  • TEST C: second fresh account bound to the SAME peer id as account A -> 200 ok — no uniqueness constraint
  • Malformed peer ids are rejected on parse alone ("invalid node_peer: failed to parse peer ID"), confirming only format is checked

Reproduced?

Yes — three live registrations on testnet-0005 (2026-11-10), raw 200 responses recorded, verifiable via GET /directory/<account>:

  • B binds account <fresh> to a node the registrant does not operate
  • No rate limit was hit while registering three accounts in quick succession

Impact

The directory is the routing table behind chat delivery ("recipient not registered in the directory — they may not receive this identity"). Because anyone can claim any peer id:

  1. Targeted DoS — one client registers hundreds/thousands of accounts all bound to one victim node; the victim node is flooded with delivery attempts for accounts it has never heard of (sustained degradation a single client can cause).
  2. Routing poisoning / identity confusion — directory lookups return a peer that does not operate the account, breaking the delivery guarantee the directory exists to provide and enabling persistent misdelivery of traffic.
  3. Impersonation surface — a node's public identity (peer id from /node) can be attached to attacker-chosen accounts with no cryptographic binding.

Bounds (honest)

  • Claiming a peer id the attacker does not operate does NOT let them decrypt deliveries — libp2p still requires the node's private key. The harm is misrouting, flooding and directory integrity, not message theft.
  • Whether the deployed node deduplicates floods at the libp2p layer was not measured (no load was generated against any other node — all registrations used attacker-owned accounts only).

Fix (sketch)

Require proof that the registrant operates node_peer: the registration signature must be produced by the peer id's own libp2p key (co-sign), or verify the peer id derives from a key that signs the message. Add a per-peer and per-client cap on bound accounts.

Reporter

XE address: afdc3f26ac9fabbecdfd4130c0c8990cc3ab367c9c4c1c82cda5ddb4d1d23692

Thread

Joseph Denneteam2026-11-10 12:18 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, reply with what differs and we will look again.