[high] Admin import/export reachable by any logged-in user (main only) #8

Closed
opened 2026-10-18 15:51:55 +00:00 by jfro · 0 comments
Owner

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 @1d89af4 and jtk/ebook-management @43a849e).

**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 @1d89af4 and jtk/ebook-management @43a849e)._
jfro closed this issue 2026-10-18 17:04:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog#8
No description provided.