#189: make the CSRF origin check fail closed #240
No reviewers
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#240
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/189-csrf-fail-closed"
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?
A cookie-carrying mutation without Origin and Referer (or with an unparsable one) is rejected with 403 csrf_origin_mismatch instead of passing unchecked.
Tested: api full suite 438 green vs fresh DB (incl. 7 new CSRF tests, zero adjustments to the 36 existing cookie-mutation test files); e2e packs auth/social/permission-matrix/attachments/content green vs fresh local env with zero csrf_origin_mismatch in the api log; typecheck + lint green.
Note for scripted cookie clients (curl session workflows): they must now send Origin: <APP_BASE_URL>.
Refs #189 (close manually after green CI + merge).
Generated with Claude Code (Claude Fable 5)