You're offline — showing cached data

MC-3577

[SafairBru] /admin/* routes exempted from CSRF protection
2026-06-13 06:15:10 SAST
Home Board MC-3577

[SafairBru] /admin/* routes exempted from CSRF protection

main.py exempts /admin/.* from CSRF middleware (line 254). Admin POST endpoints include user creation (/admin/users/add), password reset (/admin/users/reset-password/{username})...
State Done Next Action Closed Owner Luci Runtime Closed Age 27d ago
MC-3577
Ticket is done; runtime is closed. · profile claude_opus_1m_medium · cwd /home/lucienne/workspace · uptime 27d 3h · last activity 27d 1h ago

Description

MC-3577
main.py exempts /admin/.* from CSRF middleware (line 254). Admin POST endpoints include user creation (/admin/users/add), password reset (/admin/users/reset-password/{username}), forecast locking (/admin/lock-actuals), and settings changes. A malicious site could submit forms to these endpoints when an authenticated admin visits. The login/logout exemptions have documented justification, but admin endpoints handle sensitive state-changing operations. File: main.py:254 Complexity: simple Found by: nightly code review (f2ecd69 fix(MC-3260): use _sast_now() in health endpoint timestamp) Auto-fix skipped: Luci-side scheduled autofix is disabled by default; Larry owns SafairBru code changes.

Activity

done
Luci is working...
Live
No activity yet
Help