Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress Public APIs (REST/XMLRPC/GraphQL?) Should be Protected When Privacy Mode is Turned On #504

Open
3 tasks done
timnolte opened this issue Dec 22, 2023 · 0 comments
Assignees
Milestone

Comments

@timnolte
Copy link
Collaborator

Describe the bug
Currently when the Privacy mode is turned on to put the entire site behind OIDC authentication this only protects standard web requests. Currently, the REST(and presumably others) endpoints are still publicly exposed.

To Reproduce
Steps to reproduce the behavior:

  1. Turn on "Enforce Privacy" in the plugin settings.
  2. Access /wp-json/wp/v2/posts
  3. Confirm that the content is loaded without any access restrictions.

Expected behavior
The API endpoints should return a 403 forbidden when a user isn't authenticated already via the IDP.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only this plugin is active.
  • This bug happens with a default WordPress theme active.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

  • Plugin Version: All versions
  • Identity Provider: Any
  • Relevant Plugin Settings: "Enforce Privacy" enabled
@timnolte timnolte added this to the 3.10.0 milestone Dec 22, 2023
@timnolte timnolte self-assigned this Dec 22, 2023
@timnolte timnolte modified the milestones: 3.10.0, 3.10.1 Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant