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
Is there a way to change this behavior? It seems like a potential vulnerability since a user could technically get validation information even if they do not have access to some resource.
This flow seems to go against most implementations, and even Laravel's.
That feels more focused on authentication rather than authorization. Our entire graphql endpoint is behind guarded routes so no unauthenticated user can access the endpoint. What we are having an issue with is authorization for instance if a user @can do something. It's checking the validation of the mutation before it verifies the user even has permission to do that.
For instance lets say we have an order and permissions view_orders, update_order, delete_order, create_order. It's exposing validation messages before it even checks if the user can update/create. Depending on the messages this could be a potential leak.
Most flows I've encountered follow authentication -> authorization -> validation
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to change this behavior? It seems like a potential vulnerability since a user could technically get validation information even if they do not have access to some resource.
This flow seems to go against most implementations, and even Laravel's.
All reactions