[high] Admin import/export reachable by any logged-in user (main only) #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: high
Affects: main only — fixed on jtk/ebook-management, which ships in v0.6.0, so this closes when that PR merges
Files: lib/fuzzy_catalog_web/router.ex:78-80 on main. The admin scope pipes only :require_authenticated_user; UserAdminAuth.require_admin is defined but never used. Admin LiveViews check in mount, but ImportExportController doesn't check at all (export dumps the whole catalog).
Already fixed on jtk/ebook-management (router adds :require_admin). If the ebook branch doesn't ship, cherry-pick that router change to main.
Found by Nye's audit, 2026-10-18 (static review of main @
1d89af4and jtk/ebook-management @43a849e).