{"id":"XE-0069","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"94","source_url":"https://github.com/xeprotocol/xe/issues/94","reporter_id":2867,"title":"[HTTP Tunnel] X-Signature header signature is replayable forever — no nonce, no expiry, no binding to the request","area":"node-api","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-0026","tracked":true,"internal_ref":"#1050","internal_url":"https://github.com/xeprotocol/core/issues/1050","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-10-29T13:57:20.095973+00:00","updated_at":"2026-11-16T13:42:49.539255+00:00","source_created_at":"2026-10-26T21:55:01+00:00","told_at":"2026-11-08T08:49:31+00:00","status_changed_at":"2026-10-29T14:22:10.223589+00:00","url":"https://bounty.xe.network/XE-0069","body":"Suggested severity: Medium (2,500 XE).\n\n## Summary\n\n`core/xhttp.go:340-360` verifies an `X-Signature` header as `ed25519.Verify(pubkey, payload, signature)` where payload is only the request body. There is no nonce, no timestamp, no expiry, no method/path binding, and no replay cache. Any captured signature verifies forever, for any request with the same body. The tunnel endpoint (`ssh_tunnel` via `node/http.go`) accepts this as authentication for opening an SSH tunnel to a node's daemon.\n\n## Impact\n\nOne leaked header (log file, proxy, screen share, error report) gives permanent, undetectable access to the tunnel endpoint for as long as the node's keypair lives. The attacker can open SSH tunnels to the node daemon (SSH is key-only, but the tunnel itself is the authenticated perimeter: it is what exposes the daemon to the attacker in the first place). Rotation requires regenerating the node keypair, which is not documented as a response procedure.\n\n## Steps to Reproduce (local, no real funds)\n\n1. Start a node with an HTTP tunnel endpoint and capture one legitimate request (body B + X-Signature S).\n2. Replay the identical (B, S) pair minutes later, from a different client, with a different path/method.\n3. Observed: verification passes every time, indefinitely — there is no state that rejects a second use.\n\n## Recommendation\n\nBind the signature to method + path + timestamp + a server-issued nonce, enforce an expiry window (e.g. 5 minutes, with clock skew tolerance), and keep a short replay cache of seen (nonce, signature) pairs.\n\nHonest caveat: this requires one leaked header to exploit, and the SSH daemon behind the tunnel is still key-only, so the blast radius is bounded by tunnel reachability — hence Medium, with a plausible downgrade to Low (no XE amount change is claimed beyond the tier) if the team treats the tunnel as a non-security boundary. The replayability itself is objective: the same signature verifies an unlimited number of times.\n\nPayout address: to be provided on request.","patch_refs":[{"id":143,"repo":"xeprotocol/xe","kind":"pr","ref":"122","title":"fix(api): prevent TCP tunnel signature replay, add timestamp/nonce binding, and enforce concurrency cap (#48, #94)","url":"https://github.com/xeprotocol/xe/pull/122","note":"","state":"open","author":"arturbarszcz78","added_by":"desk","created_at":"2026-10-29T13:57:30.091343+00:00"}],"thread":[{"id":793,"source":"github","source_ref":"6719459922","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as #48, which was filed first: the tunnel authorisation is a static signature with no nonce, expiry or request binding, replayable for as long as the key lives. #48 is accepted; the programme pays the first verifiable submission, so this one closes as a duplicate. One note: the file paths and line numbers in your report do not match the tree, so if you file again please cite the commit you read.","created_at":"2026-11-08T08:49:31+00:00"}]}