You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feedback events take user from the request and allow updates to other users' events #6401
The feedback event endpoints take user from the request body, and their update routes accept any event. Any logged-in user can record recommendation events as another user and change another user's recommendation events by id. The flagged-content endpoint has the same shape for users with the test_dev_feature flag.
Update routes should only find the requester's own events. Interaction events belong to the requester through their recommendation_event_id.
Acceptance Criteria
General
Creating a recommendation or flag event with another user's id in user records the event as the requester's.
PUT and PATCH on another user's recommendation or interaction event return 404. On another user's flag event they return 404 for users with the test_dev_feature flag, and 403 as now for users without it.
Users can still create and update their own events.
Testing
Regression tests cover spoofed user on create and updates to another user's event, for each event type.
AI usage
I chose which audit findings belong in #6398 and set the access pattern. Claude Code found and reproduced this gap and drafted this issue.
Activity