{"id":"XE-0131","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"220","source_url":"https://github.com/xeprotocol/xe/issues/220","reporter_id":41,"title":"Critical: unauthenticated VM credential disclosure via /vms and vm_status","area":null,"claimed_tier":"critical","assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-0015","tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-10-30T13:49:02.882477+00:00","updated_at":"2026-11-10T00:11:28.872954+00:00","source_created_at":"2026-10-30T13:48:31+00:00","told_at":"2026-11-05T16:09:16+00:00","status_changed_at":"2026-11-05T16:08:52.082034+00:00","url":"https://bounty.xe.network/XE-0131","body":"Hello XE Security Team,\n\nI found a credential disclosure issue in repository commit:\n978785929bc17a2f4ab30c383e5fc9cf4d634512\n\nSummary\n-------\nVM 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.\n\nAffected code\n-------------\n- vm/vm.go: Credentials.Password has JSON tag `json:\"password\"`.\n- api/vm.go: VM list/status responses return vm.Info objects.\n- node/vm.go: vm_status returns VM info containing credentials.\n\nLocal reproduction\n------------------\nAdded temporary tests:\n- api/vm_security_test.go\n- node/vm_status_leak_test.go\n\nCommands:\n\n    go test ./api -run TestUnauthenticatedVMEndpointsExposeCredentials -v -count=1\n    go test ./node -run TestVMStatusReturnsCredentialsToUnrelatedPeer -v -count=1\n\nObserved output includes:\n\n    {\"lease_hash\":\"sentinel-lease\",\"status\":\"running\",\"credentials\":{\"username\":\"root\",\"password\":\"local-test-pw-sentinel\"},\"created_at\":0}\n\nThe 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.\n\nImpact\n------\nAn 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.\n\nSuggested remediation\n---------------------\n1. Never serialize Credentials.Password in API or peer status responses.\n2. Create redacted response DTOs instead of returning vm.Info directly.\n3. Enforce lease ownership and authorization before vm_status responses.\n4. Treat VM credentials as write-only/internal secret material; rotate credentials already exposed.\n5. Add regression tests asserting password is absent from /vms, /vms/{lease}, and vm_status responses.\n\nPlease confirm receipt and advise on coordinated disclosure and bounty handling.\n\nRegards,\nToneey\n\n[api_vm_security_test.go.txt](https://github.com/user-attachments/files/34185783/api_vm_security_test.go.txt)\n[node_vm_status_leak_test.go.txt](https://github.com/user-attachments/files/34185784/node_vm_status_leak_test.go.txt)\n[reproduce.txt](https://github.com/user-attachments/files/34185785/reproduce.txt)\n[test-output.log](https://github.com/user-attachments/files/34185782/test-output.log)\n","patch_refs":[{"id":227,"repo":"xeprotocol/xe","kind":"pr","ref":"222","title":"fix(vm,api): redact VM credentials and enforce consumer authorization on vm_status (fixes #220)","url":"https://github.com/xeprotocol/xe/pull/222","note":"","state":"open","author":"arturbarszcz78","added_by":"desk","created_at":"2026-10-30T14:26:12.455064+00:00"},{"id":247,"repo":"xeprotocol/xe","kind":"pr","ref":"5","title":"fix(node,api,core): enforce VM/tunnel auth & lease expiry, fix renewed lease & multi-asset accounting","url":"https://github.com/xeprotocol/xe/pull/5","note":"","state":"open","author":"Khanhtnq","added_by":"desk","created_at":"2026-11-04T01:36:24.869505+00:00"}],"thread":[{"id":73,"source":"github","source_ref":"6525126442","author":"arturbarszcz78","team":false,"body":"[comment from a blocked account removed]","created_at":"2026-10-30T14:24:24+00:00"},{"id":74,"source":"github","source_ref":"6525279717","author":"toneey26","team":false,"body":"Before confirming, can you clarify where these reward addresses were sourced from?","created_at":"2026-10-30T14:32:21+00:00"},{"id":77,"source":"github","source_ref":"6525525391","author":"arturbarszcz78","team":false,"body":"[comment from a blocked account removed]","created_at":"2026-10-30T14:43:50+00:00"},{"id":79,"source":"github","source_ref":"6525643718","author":"toneey26","team":false,"body":"Hi Robert,\n\nThanks 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.\n\nI 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.","created_at":"2026-10-30T14:49:25+00:00"},{"id":306,"source":"github","source_ref":"6662875622","author":"Joseph Denne","team":true,"body":"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.","created_at":"2026-11-05T16:09:16+00:00"}]}