{"id":"XE-13231","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"357","source_url":"https://github.com/xeprotocol/xe/issues/357","reporter_id":1180,"title":"[Low] QEMU SSH host-forward binds 0.0.0.0 instead of loopback — lease VM SSH bypasses the gateway","area":"node-api","claimed_tier":null,"assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-1438","tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:01.763168+00:00","updated_at":"2026-11-20T00:07:04.836544+00:00","source_created_at":"2026-11-11T07:43:19+00:00","told_at":"2026-11-20T00:05:16+00:00","status_changed_at":"2026-11-20T00:04:41.707877+00:00","url":"https://bounty.xe.network/XE-13231","body":"# [Low] QEMU SSH host-forward binds 0.0.0.0 instead of loopback — lease VM SSH bypasses the gateway\n\n**Severity (suggested):** Low\n\n## Root cause\n`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).\n\n## Impact\nThe 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.\n\n## Steps to reproduce\nOn a provider with a QEMU lease: `ss -ltnp | grep 22000` from another host → reachable.\n\n## Fix\n`hostfwd=tcp:127.0.0.1:%d-:22`.\n","patch_refs":[],"thread":[{"id":3117,"source":"github","source_ref":"6790277912","author":"urelkdubdqwr","team":false,"body":"XE payout address for this finding: `10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405`","created_at":"2026-11-11T07:48:51+00:00"},{"id":12863,"source":"github","source_ref":"7025806094","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-1438, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13231 and says what differs; it is read like any other.","created_at":"2026-11-20T00:05:16+00:00"}]}