Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unified/ql/src/queries/security/CWE-089/SqlInjection.ql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private predicate heuristicSink(DataFlow::Node node) {
* A taint configuration for tainted data that reaches a SQL sink.
*/
module SqlInjectionConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { Models::isSource(node, _) }
predicate isSource(DataFlow::Node node) { Models::isSource(node, "remote") }

predicate isSink(DataFlow::Node node) {
Models::isSink(node, "sql-injection")
Expand Down
2 changes: 1 addition & 1 deletion unified/ql/src/queries/security/CWE-094/UnsafeJsEval.ql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import unified
* A taint configuration from taint sources to sinks for this query.
*/
module UnsafeJsEvalConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { Models::isSource(node, _) }
predicate isSource(DataFlow::Node node) { Models::isSource(node, "remote") }

predicate isSink(DataFlow::Node node) { Models::isSink(node, "code-injection") }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import unified
* A taint configuration for tainted data that reaches a format string.
*/
module TaintedFormatConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { Models::isSource(node, _) }
predicate isSource(DataFlow::Node node) { Models::isSource(node, "remote") }

predicate isSink(DataFlow::Node node) {
// TODO: the MaD format currently has the varargs argument first in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import unified
* A taint-tracking configuration for predicate injection vulnerabilities.
*/
module PredicateInjectionConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { Models::isSource(node, _) }
predicate isSource(DataFlow::Node node) { Models::isSource(node, "remote") }

predicate isSink(DataFlow::Node node) { Models::isSink(node, "predicate-injection") }

Expand Down
Loading