Skip to content

Commit f291320

Browse files
authored
Merge pull request #11447 from geoffw0/localflow2
Swift: Update queries to use LocalFlowSource
2 parents 7049532 + b3d2e75 commit f291320

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

swift/ql/src/queries/Security/CWE-089/SqlInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class SQLiteSwiftSqlSink extends SqlSink {
6969
class SqlInjectionConfig extends TaintTracking::Configuration {
7070
SqlInjectionConfig() { this = "SqlInjectionConfig" }
7171

72-
override predicate isSource(DataFlow::Node node) { node instanceof RemoteFlowSource }
72+
override predicate isSource(DataFlow::Node node) { node instanceof FlowSource }
7373

7474
override predicate isSink(DataFlow::Node node) { node instanceof SqlSink }
7575
}

swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ import DataFlow::PathGraph
2020

2121
/**
2222
* A source of untrusted, user-controlled data.
23-
* TODO: Extend to more (non-remote) sources in the future.
2423
*/
25-
class Source = RemoteFlowSource;
24+
class Source = FlowSource;
2625

2726
/**
2827
* A sink that evaluates a string of JavaScript code.

0 commit comments

Comments
 (0)