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
Graphql permission problem with delete mutation #2364
Comments
|
Is there anyone? |
|
Fixed in the next bugfix version (2.3.6). |
|
thank you |
|
This a severe security issue. I requested a CVE number. |
|
CVE number is: CVE-2019-1000011 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have permission problem with delete mutation.
mutation { deleteOffice(input: {id: "/api/books/240", clientMutationId: ""}) { id } }This query is valid and the book will be deleted . If I have permission to delete
office, I can delete another entity.I think need check
$resourceClassand class$itemthere https://github.com/api-platform/core/blob/v2.3.4/src/GraphQl/Resolver/Factory/ItemMutationResolverFactory.php#L87.if ($resourceClass !== get_class($item)) { return; }P.S. Thank you for your work.
P.S.S. Sorry for my English )
The text was updated successfully, but these errors were encountered: