[VM/High] No cryptographic proof of leaseHash/accessPubKey ownership — lease theft via key substitution
Report
Summary
Provision accepts leaseHash and accessPubKey as independent parameters. The accessPubKey is converted to SSH authorized_keys format for VM access, but there is no cryptographic proof the caller owns the corresponding private key. Anyone can provision a VM with someone else's leaseHash and their own SSH key.
Affected Code
// qemu_manager.go:144-166, lima_manager.go:94-105
func (m *QEMUManager) Provision(leaseHash string, resources Resources, accessPubKey ed25519.PublicKey) (*Info, error) {
// No signature verification on (leaseHash, accessPubKey) binding
}
Impact
Lease theft: attacker gains SSH access to a VM funded by/assigned to another party. Combined with XE-VM-001 (DevTargetManager shell bypass), enables full host compromise under another user's identity.
Severity
High — cross-user lease hijacking.
Fix
Require the caller to sign the leaseHash (or a server-provided nonce) with the private key matching accessPubKey. Verify before provisioning.
Thread
Thanks. This is the same finding as https://bounty.xe.network/XE-0015, 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, reply with what differs and we will look again.