You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in advanced-gutenberg-pro/lib/vendor/publishpress/publishpress-blocks/assets/blocks/recent-posts/block.php needs to be adjusted due to a broken access control issue.
You allow any post type to be provided to the Recent Posts block, however it does not check whether that post type is meant to be public or not. As a Contirbutor user, someone could choose to embed the recent published posts of any post type that they'd like regardless if they actually have access to read posts.
You could add code like:
if ( ! is_post_type_viewable( $post_type ) ) { /* maybe return an empty string or an error message */ }
This would check whether the post type specified is viewable or not. If it isn't, then you could return a blank string or an error message perhaps.
https://secure.helpscout.net/conversation/2495159321
The text was updated successfully, but these errors were encountered: