{"id":"XE-2440","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":568,"title":"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","area":"p2p-sync","claimed_tier":"high","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-09T23:25:09.786634+00:00","updated_at":"2026-11-10T12:18:55.347018+00:00","source_created_at":null,"told_at":"2026-11-10T12:19:16.747337+00:00","status_changed_at":"2026-11-10T12:19:16.729276+00:00","url":"https://bounty.xe.network/XE-2440","body":"## Claim\r\n\r\nPOST /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.\r\n\r\n## Code\r\n\r\nNetwork 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:\r\n\r\n- TEST A (control): account + own derived peer id -> 200 ok\r\n- TEST B: fresh account + FOREIGN peer id copied from GET /node (\"12D3KooWDcSxruuy3ZkvmpKEyg3XK7TwJmqtAQjVSvbjVuWGNMR2\", a live public node) -> 200 ok — accepted with zero proof of ownership\r\n- TEST C: second fresh account bound to the SAME peer id as account A -> 200 ok — no uniqueness constraint\r\n- Malformed peer ids are rejected on parse alone (\"invalid node_peer: failed to parse peer ID\"), confirming only format is checked\r\n\r\n## Reproduced?\r\n\r\nYes — three live registrations on testnet-0005 (2026-11-10), raw 200 responses recorded, verifiable via GET /directory/<account>:\r\n- B binds account <fresh> to a node the registrant does not operate\r\n- No rate limit was hit while registering three accounts in quick succession\r\n\r\n## Impact\r\n\r\nThe 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:\r\n1. 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).\r\n2. 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.\r\n3. Impersonation surface — a node's public identity (peer id from /node) can be attached to attacker-chosen accounts with no cryptographic binding.\r\n\r\n## Bounds (honest)\r\n\r\n- 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.\r\n- 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).\r\n\r\n## Fix (sketch)\r\n\r\nRequire 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.\r\n\r\n## Reporter\r\n\r\nXE address: afdc3f26ac9fabbecdfd4130c0c8990cc3ab367c9c4c1c82cda5ddb4d1d23692","patch_refs":[],"thread":[{"id":2041,"source":"desk","source_ref":"reply:1434","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, reply with what differs and we will look again.","created_at":"2026-11-10T12:18:55.347018+00:00"}]}