SECURITY BUG: UM access restrictions not working for lists of posts
-
We are attempting to use the UM content availability features to create a list of news posts that are only available to logged-in users. While we can get it to control direct access to individual posts correctly, it is not protecting the same content when displayed in lists (either a “posts” page or a “category” page). We have tried disabling all other plugins and switched to a default theme and still had the problem, so it doesn’t appear to be a conflict.
Steps to reproduce:
1. Create a category, e.g. “news”, and set the Content Availability to “Content accessible to Logged In Users”, with the redirect URL set to ‘/login/‘.
2. Create some posts with category set to “news”.
3. Attempt to access /categories/news as a guest user (not logged in)
It displays a list of excerpts of the posts which should not be visible.4. Click on the title of any of the posts.
It properly redirects to /login/.There is a similar bug with any WordPress “posts” page. If any of the posts are not restricted, it will display the excerpts for all posts, even the ones that have a private category assigned to them.
Steps to reproduce:
1. Create some posts with Apply custom access settings turned on, and “Content accessible to Logged In Users” selected.
2. Create one post with no access restrictions.
3. Attempt to access the posts page as a guest user (not logged in).
It displays a list of excerpts of all posts, including the ones which should not be visible.4. Click on the title of any of the posts.
It properly redirects to /login/.In both cases it is displaying content that has been marked as accessible only to logged in users.
- The topic ‘SECURITY BUG: UM access restrictions not working for lists of posts’ is closed to new replies.