forked from shuvendu-lahiri/ql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: preparing for TaintedPath query
- Loading branch information
1 parent
3c82b3b
commit 960bb16
Showing
8 changed files
with
710 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @kind graph | ||
*/ | ||
import javascript | ||
import TSM.TSM | ||
|
||
query predicate sanitizerSqlClasses(DataFlow::Node nd, string q, string repr){ | ||
( | ||
nd instanceof TaintedPath::Sanitizer and q="TaintedPath" or | ||
nd instanceof TaintedPathWorse::Sanitizer and q="TaintedPathWorse" | ||
) and | ||
repr = PropagationGraph::getconcatrep(nd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @kind graph | ||
*/ | ||
import javascript | ||
import TSM.TSM | ||
|
||
query predicate sinkSqlClasses(DataFlow::Node nd, string q, string repr){ | ||
(nd instanceof TaintedPath::Sink and q="TaintedPath" or | ||
nd instanceof TaintedPathWorse::Sink and q="TaintedPathWorse" | ||
) and | ||
repr = PropagationGraph::getconcatrep(nd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @kind graph | ||
*/ | ||
import javascript | ||
import TSM.TSM | ||
|
||
query predicate sourcePathClasses(DataFlow::Node nd, string q, string repr){ | ||
(nd instanceof TaintedPath::Source and q="TaintedPath" or | ||
nd instanceof TaintedPathWorse::Source and q="TaintedPathWorse" | ||
) and | ||
repr = PropagationGraph::getconcatrep(nd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.