<!-- XE-13231 · [Low] QEMU SSH host-forward binds 0.0.0.0 instead of loopback — lease VM SSH bypasses the gateway · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13231>. The page is the record; this is the same page for reading.*

XE-13231 · Bounty

# \[Low\] QEMU SSH host-forward binds 0.0.0.0 instead of loopback — lease VM SSH bypasses the gateway

Closed · duplicate
—
[xe#357](https://github.com/xeprotocol/xe/issues/357)
filed 2026-11-11 07:43 UTC
by urelkdubdqwr

Verdict
:   Duplicate

Tier
:   —

Claimed
:   —

Area
:   Node / API

Duplicate of
:   [XE-1438](https://bounty.xe.network/XE-1438) triaging

Tracked
:   —

Updated
:   2026-11-20 00:07 UTC

Told
:   2026-11-20 00:05 UTC

### Patches

None linked.

### History

- [543880](https://bounty.xe.network/log/543880) 2026-11-20 00:06 UTC github.state\_pushed
- [543875](https://bounty.xe.network/log/543875) 2026-11-20 00:06 UTC github.labels
- [543775](https://bounty.xe.network/log/543775) 2026-11-20 00:05 UTC reply.mirrored
- [543672](https://bounty.xe.network/log/543672) 2026-11-20 00:04 UTC proposal.adopted
- [543671](https://bounty.xe.network/log/543671) 2026-11-20 00:04 UTC reply.sent
- [543670](https://bounty.xe.network/log/543670) 2026-11-20 00:04 UTC ticket.status new → closed
- [542382](https://bounty.xe.network/log/542382) 2026-11-20 00:04 UTC proposal.adopted
- [542381](https://bounty.xe.network/log/542381) 2026-11-20 00:04 UTC ticket.facts area
- [542380](https://bounty.xe.network/log/542380) 2026-11-20 00:04 UTC proposal.adopted
- [542379](https://bounty.xe.network/log/542379) 2026-11-20 00:04 UTC ticket.facts
- [542378](https://bounty.xe.network/log/542378) 2026-11-20 00:04 UTC proposal.adopted
- [542377](https://bounty.xe.network/log/542377) 2026-11-20 00:04 UTC ticket.facts

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

### Report

# \[Low\] QEMU SSH host-forward binds 0.0.0.0 instead of loopback — lease VM SSH bypasses the gateway

**Severity (suggested):** Low

## Root cause

`vm/qemu_manager.go:220` uses `-netdev user,id=n0,hostfwd=tcp::%d-:22` (empty bind host \= 0.0.0.0). Every other access path is loopback-scoped: `DialSSH` dials `127.0.0.1:%d` (`vm/qemu_manager.go:305`; Lima `vm/lima_manager.go:191`), and the intended route is consumer → gateway (`node/ssh_gateway.go`, which enforces the lease `AccessPubKey` and lease state).

## Impact

The VM's port 22 is directly reachable from any host for the whole lease, bypassing the gateway's per-lease authorization, tunnel accounting, and `CloseTunnelsForLease` revocation, and exposing the VM for fingerprinting.

## Steps to reproduce

On a provider with a QEMU lease: `ss -ltnp | grep 22000` from another host → reachable.

## Fix

`hostfwd=tcp:127.0.0.1:%d-:22`.

### Thread

**urelkdubdqwr**2026-11-11 07:48 UTCgithub

XE payout address for this finding: `10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405`

**Joseph Denne**team2026-11-20 00:05 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-1438, 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, file a new report that links https://bounty.xe.network/XE-13231 and says what differs; it is read like any other.
