discourse/plugins/chat/spec
Martin Brennan 2c45b949ea 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:47:24 +11:00
..
components/chat DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
fabricators DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
integration DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
jobs DEV: moves logic from job to a service (#22691) 2023-07-27 10:25:41 +02:00
lib SECURITY: Filter unread bookmark reminders the user cannot see 2023-11-09 13:47:24 +11:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Refactor chat channel fetching 2023-07-27 11:55:17 +02:00
queries/chat FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
requests SECURITY: Filter unread bookmark reminders the user cannot see 2023-11-09 13:47:24 +11:00
serializer FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
services SECURITY: Add permissions to MessageBus in chat (stable) 2023-10-16 10:51:23 -04:00
support FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
system DEV: skip flakey spec in deleted messages (#22862) 2023-07-28 20:37:41 +02:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00