Non-Forum Staff Getting Notifications for Staff Only Tags

AI-generated summary

A security-related issue was reported by samuelgrant where non-staff members who were previously watching staff-only tags would still receive notifications even after losing their staff privileges. They couldn’t access or view the tag but would still be notified when it was applied. nat has confirmed this issue and announced that a fix has been pushed to the latest build, which will stop notifications for privileged tags previously watched. This fix also ensures that users won’t see these tags in their notification preferences unless they have the necessary privileges.

It seems a non-staff member can get notifications if they are ‘watching’ a tag even though that tag is restricted to staff only (read/write).

A little backstory:

I recently left a group that I was involved in as a moderator. We used tags internally to help track important topics, some of these tags were set up so only staff could see and add them. So I was aware of these topics I had set my notification settings to ‘Watching First Post’ for the staff-only tags.

Now that I am no longer a staff member I still get notifications when the tag is applied to a topic. However, I cannot:

  • Access the tag page /tags/{tag_name}
  • See the tag on the topic
  • See that the topic was edited by a staff member to add the tag
  • Once I remove that tag from my notification preferences, I cannot add it back

Because I cannot access, or see the tag, I don’t think I should be able to get notifications when it is applied. I wouldn’t consider this to be a security issue per se, but it could potentially leak some information some communities don’t want to be known outside of their staff team(s).

8 Likes

Hey there, thank you for reporting this. We’ve pushed a fix to the latest version of our build. With that, you should:

  • stop receiving notifications on privileged tags you’ve watched before
  • not even see those tags on your notification preferences or have to un-watch them
    • the nice part about this one is that if you get reinstated as a moderator, you’d not have to re-watch them!

PR: SECURITY: Only show tags to users with permission by nattsw · Pull Request #15148 · discourse/discourse · GitHub

2 Likes