<!-- XE-0069 · [HTTP Tunnel] X-Signature header signature is replayable forever — no nonce, no expiry, no binding to the request · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0069>. The page is the record; this is the same page for reading.*

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](https://github.com/xeprotocol/xe/issues/94)
filed 2026-10-26 21:55 UTC
by xe:6cf52cc9

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Node / API

Duplicate of
:   [XE-0026](https://bounty.xe.network/XE-0026) accepted

Tracked
:   internally

Updated
:   2026-11-16 13:42 UTC

Told
:   2026-11-08 08:49 UTC

### Patches

- [xe#122](https://github.com/xeprotocol/xe/pull/122) open by arturbarszcz78
  fix(api): prevent TCP tunnel signature replay, add timestamp/nonce binding, and enforce concurrency cap (#48, #94)

### History

- [21596](https://bounty.xe.network/log/21596) 2026-11-08 08:49 UTC reply.mirrored
- [21595](https://bounty.xe.network/log/21595) 2026-11-08 08:49 UTC reply.sent
- [21594](https://bounty.xe.network/log/21594) 2026-11-08 08:49 UTC proposal.adopted
- [4156](https://bounty.xe.network/log/4156) 2026-11-04 09:19 UTC proposal.created
- [890](https://bounty.xe.network/log/890) 2026-10-29 14:22 UTC github.state\_pushed
- [889](https://bounty.xe.network/log/889) 2026-10-29 14:22 UTC github.labels
- [719](https://bounty.xe.network/log/719) 2026-10-29 14:22 UTC note.added
- [718](https://bounty.xe.network/log/718) 2026-10-29 14:22 UTC ticket.status accepted → closed
- [717](https://bounty.xe.network/log/717) 2026-10-29 14:22 UTC ticket.facts area
- [616](https://bounty.xe.network/log/616) 2026-10-29 14:05 UTC github.labels
- [342](https://bounty.xe.network/log/342) 2026-10-29 14:04 UTC ticket.status triaging → accepted
- [341](https://bounty.xe.network/log/341) 2026-10-29 14:04 UTC ticket.status new → triaging

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

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