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
Looks like Brakeman does not check Graphql Mutations and Resolvers for potential vulnerabilities
Example:
# app/graphql/resolvers/user.rb
class Resolvers::User < Resolvers::Base
argument :id, Integer, required: true
def resolve(**args)
User.find(id: args[:id])
...
end
end
end
I would expect to get UnscopedFind warning but got nothing
UnscopedFind is an optional check, because it is pretty noisy and has a lot of false positives. Assuming you are running this check (e.g. with -A or --run-all-checks)...
Brakeman only warns about unscoped finds if there is a reason to think the find could/should be scoped. In practice, this means models with a belongs_to relationship. Usually User does not belong to another model.
If I'm incorrect in my guess about User and it does have belongs_to: in it, let me know.
Looks like Brakeman does not check Graphql Mutations and Resolvers for potential vulnerabilities
Example:
I would expect to get
UnscopedFind
warning but got nothingThe text was updated successfully, but these errors were encountered: