File tree Expand file tree Collapse file tree 2 files changed +20
-11
lines changed
lib/semmle/code/java/security Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change
1
+ /** Provides a taint-tracking configuration to reason about URL redirection from local sources. */
2
+
3
+ import java
4
+ import semmle.code.java.dataflow.FlowSources
5
+ import semmle.code.java.security.UrlRedirect
6
+
7
+ /**
8
+ * A taint-tracking configuration to reason about URL redirection from local sources.
9
+ */
10
+ module UrlRedirectLocalConfig implements DataFlow:: ConfigSig {
11
+ predicate isSource ( DataFlow:: Node source ) { source instanceof LocalUserInput }
12
+
13
+ predicate isSink ( DataFlow:: Node sink ) { sink instanceof UrlRedirectSink }
14
+ }
15
+
16
+ /**
17
+ * Taint-tracking flow for URL redirection from local sources.
18
+ */
19
+ module UrlRedirectLocalFlow = TaintTracking:: Global< UrlRedirectLocalConfig > ;
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
import java
15
- import semmle.code.java.dataflow.FlowSources
16
- import semmle.code.java.security.UrlRedirect
17
-
18
- module UrlRedirectLocalConfig implements DataFlow:: ConfigSig {
19
- predicate isSource ( DataFlow:: Node source ) { source instanceof LocalUserInput }
20
-
21
- predicate isSink ( DataFlow:: Node sink ) { sink instanceof UrlRedirectSink }
22
- }
23
-
24
- module UrlRedirectLocalFlow = TaintTracking:: Global< UrlRedirectLocalConfig > ;
25
-
15
+ import semmle.code.java.security.UrlRedirectLocalQuery
26
16
import UrlRedirectLocalFlow:: PathGraph
27
17
28
18
from UrlRedirectLocalFlow:: PathNode source , UrlRedirectLocalFlow:: PathNode sink
You can’t perform that action at this time.
0 commit comments