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 for reasoning about URL redirections. */
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 for reasoning about URL redirections.
9
+ */
10
+ module UrlRedirectConfig implements DataFlow:: ConfigSig {
11
+ predicate isSource ( DataFlow:: Node source ) { source instanceof RemoteFlowSource }
12
+
13
+ predicate isSink ( DataFlow:: Node sink ) { sink instanceof UrlRedirectSink }
14
+ }
15
+
16
+ /**
17
+ * Taint-tracking flow for URL redirections.
18
+ */
19
+ module UrlRedirectFlow = TaintTracking:: Global< UrlRedirectConfig > ;
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 UrlRedirectConfig implements DataFlow:: ConfigSig {
19
- predicate isSource ( DataFlow:: Node source ) { source instanceof RemoteFlowSource }
20
-
21
- predicate isSink ( DataFlow:: Node sink ) { sink instanceof UrlRedirectSink }
22
- }
23
-
24
- module UrlRedirectFlow = TaintTracking:: Global< UrlRedirectConfig > ;
25
-
15
+ import semmle.code.java.security.UrlRedirectQuery
26
16
import UrlRedirectFlow:: PathGraph
27
17
28
18
from UrlRedirectFlow:: PathNode source , UrlRedirectFlow:: PathNode sink
You can’t perform that action at this time.
0 commit comments