Bounty
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 filed 2026-11-11 07:43 UTC by urelkdubdqwr

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

urelkdubdqwr2026-11-11 07:48 UTCgithub

XE payout address for this finding: 10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405

Joseph Denneteam2026-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.