-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Java: Move QueryInjectionSink
into importable library
#3926
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
Conversation
This enables defining of new sinks to customise the CWE-089 queries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two classes SqlInjectionSink
and PersistenceQueryInjectionSink
should also be moved to the new file. This makes the definition of QueryInjectionSink
more transparent and ensures that they are always part of QueryInjectionSink
even if this is referenced in a different query. The newly added file should also have file-level qldoc (in the style "Provides classes for reasoning about ..." or something that's grammatically similar, i.e. the sentence should start with an assumed implicit "This file module").
Also, when moving these, we should make them |
Join SqlInjectionSink and PersistenceQueryInjectionSink with QueryInjectionSink to make its definition more transparent.
Extends from the more general DataFlow::Node instead of DataFlow::ExprNode
This enables defining of new sinks to customise the CWE-089 queries.