File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed
lib/codeql/swift/security
src/queries/Security/CWE-020 Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
* that match URLs and hostname patterns.
4
4
*/
5
5
6
- private import javascript as JS
7
- private import semmle.javascript.security.regexp.RegExpTreeView:: RegExpTreeView as TreeImpl
8
- private import semmle.javascript.Regexp as RegExp
6
+ private import swift
7
+ private import codeql.swift.dataflow.DataFlow
8
+ private import codeql.swift.regex.Regex as Regex
9
+ private import codeql.swift.regex.RegexTreeView:: RegexTreeView as TreeImpl
9
10
private import codeql.regex.HostnameRegexp as Shared
10
11
11
- /** An implementation of the signature that allows the Hostname analysis to run. */
12
+ /**
13
+ * An implementation of the signature that allows the Hostname analysis to run.
14
+ */
12
15
module Impl implements Shared:: HostnameRegexpSig< TreeImpl > {
13
- class DataFlowNode = JS :: DataFlow:: Node ;
16
+ class DataFlowNode = DataFlow:: Node ;
14
17
15
- class RegExpPatternSource = RegExp :: RegExpPatternSource ;
18
+ class RegExpPatternSource = Regex :: RegexPatternSource ;
16
19
}
17
20
18
21
import Shared:: Make< TreeImpl , Impl >
Original file line number Diff line number Diff line change 5
5
* @problem.severity warning
6
6
* @security-severity 7.8
7
7
* @precision high
8
- * @id js /incomplete-hostname-regexp
8
+ * @id swift /incomplete-hostname-regexp
9
9
* @tags correctness
10
10
* security
11
11
* external/cwe/cwe-020
12
12
*/
13
13
14
- private import semmle.javascript .security.regexp.HostnameRegexp as HostnameRegexp
14
+ private import codeql.swift .security.regex.HostnameRegex as HostnameRegex
15
15
16
- query predicate problems = HostnameRegexp :: incompleteHostnameRegExp / 4 ;
16
+ query predicate problems = HostnameRegex :: incompleteHostnameRegExp / 4 ;
You can’t perform that action at this time.
0 commit comments