{"answers":{"affected":"2 open source packages ship an affected version, including grumpydictator/firefly-iii.","exploited":"There is no known exploitation of GHSA-5q8v-j673-m5v4 in the wild and no public exploit code.","fix":"Upgrade grumpydictator/firefly-iii to 6.5.1 or later.","what":"GHSA-5q8v-j673-m5v4 is a missing authorization vulnerability in grumpydictator/firefly-iii, published on 7 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5q8v-j673-m5v4 and fix it if it is affected.\n\nWhat it is: GHSA-5q8v-j673-m5v4 is a missing authorization vulnerability in grumpydictator/firefly-iii, published on 7 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-5q8v-j673-m5v4 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grumpydictator/firefly-iii (Packagist): affected from 6.4.23; fixed in 6.5.1\n- grumpydictator/firefly-iii (Packagist): affected from 6.4.23; fixed in 6.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-5q8v-j673-m5v4/ (Markdown: https://insights.sbomify.com/GHSA-5q8v-j673-m5v4/index.md)","id":"GHSA-5q8v-j673-m5v4","markdown":"https://insights.sbomify.com/GHSA-5q8v-j673-m5v4/index.md","name":"GHSA-5q8v-j673-m5v4","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Firefly III","requires_auth":"low_privilege","summary":"Any authenticated user can access all user account details, including emails and roles, due to missing authorization checks on API endpoints.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nThe User management API endpoints (`GET /api/v1/users` and `GET /api/v1/users/{id}`) are accessible to any authenticated user without admin/owner role verification, exposing all users' email addresses, roles, and account status.\n\n### Affected Endpoints\n\n1. **GET /api/v1/users** (UserController::index, line 94) — Lists ALL users with full details. No role check.\n2. **GET /api/v1/users/{id}** (UserController::show, line 126) — Shows any user's details by ID. No role check.\n\n### Root Cause (1-of-N Inconsistency)\n\nOther methods in the same controller properly check for the 'owner' role:\n\n- `store()` — `UserStoreRequest::authorize()` checks `auth()-\u003euser()-\u003ehasRole('owner')` ✓\n- `destroy()` — Explicitly checks `$this-\u003erepository-\u003ehasRole($admin, 'owner')` ✓\n\nBut `index()` and `show()` have no role check at all. The route group at `routes/api.php:734-747` has no admin middleware, only the global `auth:api` middleware.\n\n### Exposed Data\n\nThe `UserTransformer` (line 40-54) returns:\n- `email` — user's email address\n- `role` — user's role (owner/demo)\n- `blocked` — account blocked status\n- `blocked_code` — block reason\n- `created_at` / `updated_at` — timestamps\n\n### Impact\n\nAny authenticated user can:\n1. Enumerate ALL user accounts in the instance\n2. Harvest email addresses for phishing/social engineering\n3. Identify admin/owner accounts by role\n4. Determine which accounts are blocked\n\n### Exploitation\n\n```bash\n# List all users\ncurl -H \"Authorization: Bearer \u003cany_user_token\u003e\" https://instance/api/v1/users\n\n# View specific user details\ncurl -H \"Authorization: Bearer \u003cany_user_token\u003e\" https://instance/api/v1/users/1\n```\n\n### Suggested Fix\n\nAdd owner role checks to `index()` and `show()`, or restrict the route group with admin middleware:\n\n```php\n// Option 1: Add check in controller methods\npublic function show(User $user): JsonResponse\n{\n    if (!$this-\u003erepository-\u003ehasRole(auth()-\u003euser(), 'owner') \u0026\u0026 auth()-\u003euser()-\u003eid !== $user-\u003eid) {\n        throw new FireflyException('200025: No access to function.');\n    }\n    // ...\n}\n\n// Option 2: Add middleware to route group\nRoute::group(['middleware' =\u003e ['admin'], ...], ...)\n```","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Firefly III user API endpoints expose all users' information to any authenticated user (IDOR)","id":"GHSA-5q8v-j673-m5v4","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["6.5.1"],"introduced":["6.4.23"],"last_affected":[],"package":"grumpydictator/firefly-iii","purl":null,"source":"GHSA-5q8v-j673-m5v4"},{"ecosystem":"Packagist","fixed":["6.5.1"],"introduced":["6.4.23"],"last_affected":[],"package":"grumpydictator/firefly-iii","purl":"pkg:composer/grumpydictator/firefly-iii","source":"GHSA-5q8v-j673-m5v4"}],"products":null,"published":"2026-03-07","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Any authenticated user can access all user account details, including emails and roles, due to missing authorization checks on API endpoints.","url":"https://insights.sbomify.com/GHSA-5q8v-j673-m5v4/"}