<!-- XE-2440 · 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 · testnet -->
*Markdown view of <https://bounty.xe.network/XE-2440>. The page is the record; this is the same page for reading.*

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

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-10 12:18 UTC

Told
:   2026-11-10 12:19 UTC

### Patches

None linked.

### History

- [80170](https://bounty.xe.network/log/80170) 2026-11-10 12:19 UTC proposal.adopted
- [80169](https://bounty.xe.network/log/80169) 2026-11-10 12:19 UTC reply.sent
- [80168](https://bounty.xe.network/log/80168) 2026-11-10 12:19 UTC ticket.status new → closed
- [79651](https://bounty.xe.network/log/79651) 2026-11-10 12:19 UTC proposal.adopted
- [79650](https://bounty.xe.network/log/79650) 2026-11-10 12:19 UTC ticket.facts area
- [79649](https://bounty.xe.network/log/79649) 2026-11-10 12:19 UTC proposal.adopted
- [79648](https://bounty.xe.network/log/79648) 2026-11-10 12:19 UTC ticket.facts
- [79647](https://bounty.xe.network/log/79647) 2026-11-10 12:19 UTC proposal.adopted
- [79646](https://bounty.xe.network/log/79646) 2026-11-10 12:19 UTC ticket.facts
- [73548](https://bounty.xe.network/log/73548) 2026-11-10 10:56 UTC proposal.created
- [73547](https://bounty.xe.network/log/73547) 2026-11-10 10:56 UTC proposal.created
- [73546](https://bounty.xe.network/log/73546) 2026-11-10 10:56 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-2440) · [JSON](https://bounty.xe.network/v1/tickets/XE-2440) · [markdown](https://bounty.xe.network/XE-2440.md)

### 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 Denne**team2026-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.
