AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Forums with No Access can be Subscribed to by Users

3 Posts
2 Users
0 Reactions
139 Views
Posts: 34
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moptop)
Trusted Member
Joined: 6 years ago
[#72951]

I have a private forum with access set to only the Administrator and Moderator. But when I make a post regular users are getting notifications. I discovered this because my SMTP plugin keeps a log of all emails going out. When I go to the Forum Members section and I look under any members' subscription check marks, anyone has the ability to see the hidden forums and subscribe to them. They don't have access to see the posts because they can't access the forum, but sometimes the notifications have the content of the post in the body of the email.

Why are regular users who do not have access to the forum able to subscribe to it and even see that it exists? I have attached screenshots showing that you can subscribe to any and all forums, private or not through your profile.

I have an Administration forum with a Private Test Forum that only I have access to, but people are getting notifications from it because they are able to select it from their profile.

WPForo: 2.4.17
Wordpress: 6.9.4

Screenshot 3
Screenshot 1
Screenshot 2

 


2 Replies
Posts: 1017
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@martin)
Support Team
Joined: 10 years ago

Hi @moptop,

Soemthing is wrong with your tests, there is no such bug in wpForo.

When you view subscription page of a user with your account you see all forums, id doesn't mean the user sees the same list of forums. User will only see the forums which are allowed to see.

It seems after creating or setting a forum provate the cache have not been properly deleted or you have tested with wrong user.

 

Here are the checklist:

  1. I recommend delete the test user, create a new one and test with the new user. make sure you're login with that user when you chekc the forum list.
  2. Also, make sure the No Access is correctly configured for the forum where you create topics. I mean it should be the parent forum or the category, the access configuration must be for each forum and sub-forum.
  3. Edit the "No Access" forum access and make sure its permissions are unchecked.
  4. Delete all kind of caches and wpForo cache in wpForo > Overview admin page.
  5. Re-synchronize user roles with usergroups in wpForo > Usergroups admin page
  6. Use real email addresses and inboxes to see the email notification, do not rely on a plugin logs.

 

We did deep review of wpForo today, here is the result:

PR Description Private Forum Impact
#1052 Fix read tracking variable None
#1053 Async indexing breakdown None
#1054 Fix duplicate moderation emails None (adds checks, not removes)
#1055 Fix view count duplicates None
#1056 Async email queue None (doesn't change access logic)
#1057 Add context parameters None (doesn't change access logic)

No bug found that would send email notifications to inappropriate users from private forums.

Current Status: SECURE

 

All three email notification modules have proper view_access checks:

Module Check Location
Subscriptions WPF()->topic->view_access($topic, $user)
Subscriptions WPF()->post->view_access($post, $user)
Follows WPF()->topic->view_access($topic, $user)
Follows WPF()->post->view_access($post, $user)
Mentioning Both topic and post view_access

 

These checks verify:

  1. Forum view permission
  2. Topic view permission
  3. Private topic view permission

The view_access checks have been in place since May 2022

Only exception: Admin emails configured in wpForo > Settings > Email receive all notifications (by design - they're site admins).

 

 


Reply
Posts: 34
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moptop)
Trusted Member
Joined: 6 years ago

Thank you for looking into that and the clarification when logged in as an admin and looking at a users subscriptions. 

I cleared all the caches and re-synced the user data and groups and that seems to have solved the issue with the forum emailing unauthorized users.

I will keep an eye on it and do some regular testing on private forums to ensure it doesn't happen again.


Reply
Share: