xe lease submits the signed lease block through hardcoded third-party nodes, ignoring the configured node
Report
Summary. xe lease never submits through the user's configured node first. It posts the signed lease block to one of three hardcoded public testnet nodes and only falls back to XE_NODE if all three are unreachable.
Documented rule. Submission goes to the endpoint the user configured (XE_NODE, resolved by nodeURL()); the network id is already read from that node, so signing and submission are expected to target the same deployment.
Code path. xe/cmd/xe/main.go pickSubmitNode (lines 1744-1762) iterates ldn/ffm/nyc.core.test.network, returns the first node whose address is not the provider's, and returns nodeURL() only when all three probes fail; its *client.Client parameter is unused. The lease flow (line 1086) submits the signed block through the returned URL. Affected code is at xe HEAD 89a542e.
Reproduction. Set XE_NODE to a locally controlled endpoint, run xe lease, and observe (in the endpoint's absence of traffic, and the hardcoded nodes' receipt of the block) that the signed lease block - including the lease SSH access public key - goes to a hardcoded public node, not the configured one.
Impact. Confidentiality (signed financial block + SSH access key disclosed to third-party nodes) and correctness (lease creation breaks, or lands on the wrong network, for anyone not on the public testnet).
Thread
Thanks. This is the same finding as an earlier report that is not public, 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-12955 and says what differs; it is read like any other.