Skip to content

Conversation

rvermeulen
Copy link
Contributor

This enables defining of new sinks to customise the CWE-089 queries.

This enables defining of new sinks to customise the CWE-089 queries.
@rvermeulen rvermeulen requested a review from a team as a code owner July 8, 2020 14:28
Copy link
Contributor

@aschackmull aschackmull left a 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").

@aschackmull
Copy link
Contributor

The two classes SqlInjectionSink and PersistenceQueryInjectionSink should also be moved to the new file.

Also, when moving these, we should make them private.

Join SqlInjectionSink and PersistenceQueryInjectionSink with
QueryInjectionSink to make its definition more transparent.
Extends from the more general DataFlow::Node instead of
DataFlow::ExprNode
@aschackmull aschackmull merged commit 99a4f8f into github:master Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants