Closed
Description
NetBox version
v3.0.9
Python version
3.8
Steps to Reproduce
- Log into NetBox as a user without permission to view user or group objects
- Navigate to the GraphQL API view (
/graphql/
) - Enter the following query:
query {
user_list
{
username
password
}
}
Expected Behavior
The query should return an empty list due to insufficient permissions.
Observed Behavior
The results are not filtered. This is due to a missing call to restrict()
on the queryset for these models. (These models are provided by the Django framework, so they're handled a bit differently than native NetBox models.)