Bounty
XE-0069 · Bounty

[HTTP Tunnel] X-Signature header signature is replayable forever — no nonce, no expiry, no binding to the request

Closed · duplicate —claimed Medium xe#94 filed 2026-10-26 21:55 UTC by xe:6cf52cc9

Report

Suggested severity: Medium (2,500 XE).

Summary

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.

Impact

One 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.

Steps to Reproduce (local, no real funds)

  1. Start a node with an HTTP tunnel endpoint and capture one legitimate request (body B + X-Signature S).
  2. Replay the identical (B, S) pair minutes later, from a different client, with a different path/method.
  3. Observed: verification passes every time, indefinitely — there is no state that rejects a second use.

Recommendation

Bind 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.

Honest 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.

Payout address: to be provided on request.

Thread

Joseph Denneteam2026-11-08 08:49 UTCgithub

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.