Skip to content

Don't fetch populate private data #1678

@arsenx

Description

@arsenx

Informations

  • Node.js version:
  • npm version:
  • Strapi version:
  • Database:
  • Operating system:

What is the current behavior?
When querying a private table that has a relationship to a public table we are able to get access to unauthorized data.

Steps to reproduce the problem
GraphQL query a private table though a public table
Here is a link to a video I made to show the behavior. https://www.useloom.com/share/f3998defd8ad4c0a8600c8f66dce81c0

What is the expected behavior?
Return unauthorized message

Suggested solutions
Many ways to go about this depending on the source code which I haven't gone through.

Metadata

Metadata

Assignees

Labels

issue: feature requestIssue suggesting a new featureseverity: mediumIf it breaks the basic use of the product but can be worked around

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions