Critical: unauthenticated VM credential disclosure via /vms and vm_status
Report
Hello XE Security Team,
I found a credential disclosure issue in repository commit: 978785929bc17a2f4ab30c383e5fc9cf4d634512
Summary
VM API and peer messaging responses serialize vm.Info.Credentials, including plaintext Password. The endpoints/handler paths do not redact credentials before returning data. The vm_status peer handler also returns the complete vm.Info to an unrelated peer without proving lease ownership.
Affected code
- vm/vm.go: Credentials.Password has JSON tag
json:"password". - api/vm.go: VM list/status responses return vm.Info objects.
- node/vm.go: vm_status returns VM info containing credentials.
Local reproduction
Added temporary tests:
- api/vm_security_test.go
- node/vm_status_leak_test.go
Commands:
go test ./api -run TestUnauthenticatedVMEndpointsExposeCredentials -v -count=1
go test ./node -run TestVMStatusReturnsCredentialsToUnrelatedPeer -v -count=1
Observed output includes:
{"lease_hash":"sentinel-lease","status":"running","credentials":{"username":"root","password":"local-test-pw-sentinel"},"created_at":0}
The second test uses two local libp2p peers. A peer that is not the VM lessee requests vm_status and receives the password sentinel. No production network, public node, or live exploit was used.
Impact
An unauthorized API caller or network peer able to reach these handlers may obtain VM SSH credentials. Those credentials can enable unauthorized access to provider VMs and compromise workloads, data, or host resources. Severity: Critical/High, depending on deployment reachability and handler exposure.
Suggested remediation
- Never serialize Credentials.Password in API or peer status responses.
- Create redacted response DTOs instead of returning vm.Info directly.
- Enforce lease ownership and authorization before vm_status responses.
- Treat VM credentials as write-only/internal secret material; rotate credentials already exposed.
- Add regression tests asserting password is absent from /vms, /vms/{lease}, and vm_status responses.
Please confirm receipt and advise on coordinated disclosure and bounty handling.
Regards, Toneey
api_vm_security_test.go.txt node_vm_status_leak_test.go.txt reproduce.txt test-output.log
Thread
[comment from a blocked account removed]
Before confirming, can you clarify where these reward addresses were sourced from?
[comment from a blocked account removed]
Hi Robert,
Thanks for clarifying. I understand that the listed addresses are your personal recipient addresses for engineer attribution related to PR #222, not payout addresses for my bounty.
I also appreciate the confirmation that discovery credit and any bounty for the vulnerability belong fully to me. I’ll wait for the team’s review and official bounty process for the next steps.
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.