<!-- XE-0131 · Critical: unauthenticated VM credential disclosure via /vms and vm_status · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0131>. The page is the record; this is the same page for reading.*

XE-0131 · Bounty

# Critical: unauthenticated VM credential disclosure via /vms and vm\_status

Closed · duplicate
—claimed Critical
[xe#220](https://github.com/xeprotocol/xe/issues/220)
filed 2026-10-30 13:48 UTC
by toneey26

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Critical

Area
:   —

Duplicate of
:   [XE-0015](https://bounty.xe.network/XE-0015) fixing

Tracked
:   —

Updated
:   2026-11-10 00:11 UTC

Told
:   2026-11-05 16:09 UTC

### Patches

- [xe#222](https://github.com/xeprotocol/xe/pull/222) open by arturbarszcz78
  fix(vm,api): redact VM credentials and enforce consumer authorization on vm\_status (fixes #220)
- [xe#5](https://github.com/xeprotocol/xe/pull/5) open by Khanhtnq
  fix(node,api,core): enforce VM/tunnel auth \& lease expiry, fix renewed lease \& multi-asset accounting

### History

- [8404](https://bounty.xe.network/log/8404) 2026-11-05 16:09 UTC github.state\_pushed
- [8403](https://bounty.xe.network/log/8403) 2026-11-05 16:09 UTC github.labels
- [8402](https://bounty.xe.network/log/8402) 2026-11-05 16:09 UTC reply.mirrored
- [8390](https://bounty.xe.network/log/8390) 2026-11-05 16:08 UTC reply.sent
- [8389](https://bounty.xe.network/log/8389) 2026-11-05 16:08 UTC proposal.adopted
- [8388](https://bounty.xe.network/log/8388) 2026-11-05 16:08 UTC proposal.adopted
- [8387](https://bounty.xe.network/log/8387) 2026-11-05 16:08 UTC ticket.status triaging → closed
- [8386](https://bounty.xe.network/log/8386) 2026-11-05 16:08 UTC proposal.adopted
- [8385](https://bounty.xe.network/log/8385) 2026-11-05 16:08 UTC ticket.facts
- [8384](https://bounty.xe.network/log/8384) 2026-11-05 16:08 UTC proposal.adopted
- [8383](https://bounty.xe.network/log/8383) 2026-11-05 16:08 UTC ticket.facts
- [7465](https://bounty.xe.network/log/7465) 2026-11-05 14:02 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-0131) · [JSON](https://bounty.xe.network/v1/tickets/XE-0131) · [markdown](https://bounty.xe.network/XE-0131.md)

### 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](https://github.com/user-attachments/files/34185783/api_vm_security_test.go.txt)
[node\_vm\_status\_leak\_test.go.txt](https://github.com/user-attachments/files/34185784/node_vm_status_leak_test.go.txt)
[reproduce.txt](https://github.com/user-attachments/files/34185785/reproduce.txt)
[test-output.log](https://github.com/user-attachments/files/34185782/test-output.log)

### Thread

**arturbarszcz78**2026-10-30 14:24 UTCgithub

\[comment from a blocked account removed\]

**toneey26**2026-10-30 14:32 UTCgithub

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

**arturbarszcz78**2026-10-30 14:43 UTCgithub

\[comment from a blocked account removed\]

**toneey26**2026-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 Denne**team2026-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.
