Bounty
XE-0131 · Bounty

Critical: unauthenticated VM credential disclosure via /vms and vm_status

Closed · duplicate —claimed Critical xe#220 filed 2026-10-30 13:48 UTC by toneey26

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

  1. Never serialize Credentials.Password in API or peer status responses.
  2. Create redacted response DTOs instead of returning vm.Info directly.
  3. Enforce lease ownership and authorization before vm_status responses.
  4. Treat VM credentials as write-only/internal secret material; rotate credentials already exposed.
  5. 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

arturbarszcz782026-10-30 14:24 UTCgithub

[comment from a blocked account removed]

toneey262026-10-30 14:32 UTCgithub

Before confirming, can you clarify where these reward addresses were sourced from?

arturbarszcz782026-10-30 14:43 UTCgithub

[comment from a blocked account removed]

toneey262026-10-30 14:49 UTCgithub

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.

Joseph Denneteam2026-11-05 16:09 UTCgithub

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.