discourse/plugins/chat/spec
Martin Brennan 3c5fb871c0 SECURITY: Filter unread bookmark reminders the user cannot see
There is an edge case where the following occurs:

1. The user sets a bookmark reminder on a post/topic
2. The post/topic is changed to a PM before or after the reminder
   fires, and the notification remains unread by the user
3. The user opens their bookmark reminder notification list
   and they can still see the notification even though they cannot
   access the topic anymore

There is a very low chance for information leaking here, since
the only thing that could be exposed is the topic title if it
changes to something sensitive.

This commit filters the bookmark unread notifications by using
the bookmarkable can_see? methods and also prevents sending
reminder notifications for bookmarks the user can no longer see.
2023-11-09 13:39:16 +11:00
..
components/chat FEATURE: add grace period for chat edits (#23800) 2023-10-23 16:40:30 +08:00
fabricators PERF: cook message in background (#24227) 2023-11-06 15:45:30 +01:00
integration DEV: improves reliability of delete/restore/update specs (#24265) 2023-11-07 11:34:35 +01:00
jobs PERF: cook message in background (#24227) 2023-11-06 15:45:30 +01:00
lib SECURITY: Filter unread bookmark reminders the user cannot see 2023-11-09 13:39:16 +11:00
mailers DEV: Migrate Chat::MessageCreator to a service (#22390) 2023-09-07 08:57:29 +02:00
models DEV: improves reliability of delete/restore/update specs (#24265) 2023-11-07 11:34:35 +01:00
policies/chat/channel DEV: Migrate Chat::MessageCreator to a service (#22390) 2023-09-07 08:57:29 +02:00
queries/chat FIX: handle thread participants limit on the frontend (#23839) 2023-10-09 14:04:59 +08:00
requests SECURITY: Filter unread bookmark reminders the user cannot see 2023-11-09 13:39:16 +11:00
serializer FIX: do not serialize status when profile is hidden (#23946) 2023-10-16 17:43:39 +02:00
services PERF: cook message in background (#24227) 2023-11-06 15:45:30 +01:00
support FEATURE: add grace period for chat edits (#23800) 2023-10-23 16:40:30 +08:00
system DEV: improves reliability of delete/restore/update specs (#24265) 2023-11-07 11:34:35 +01:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: improves reliability of delete/restore/update specs (#24265) 2023-11-07 11:34:35 +01:00
plugin_spec.rb DEV: Refactor chat oneboxes (#23031) 2023-09-04 16:55:02 +02:00