File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
semmle/code/java/security Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import java
14
14
import semmle.code.java.dataflow.FlowSources
15
- import UrlRedirect
15
+ import semmle.code.java.security. UrlRedirect
16
16
import DataFlow:: PathGraph
17
17
18
18
class UrlRedirectConfig extends TaintTracking:: Configuration {
Original file line number Diff line number Diff line change 12
12
13
13
import java
14
14
import semmle.code.java.dataflow.FlowSources
15
- import UrlRedirect
15
+ import semmle.code.java.security. UrlRedirect
16
16
import DataFlow:: PathGraph
17
17
18
18
class UrlRedirectLocalConfig extends TaintTracking:: Configuration {
Original file line number Diff line number Diff line change
1
+ /** Provides classes to reason about URL redirect attacks. */
2
+
1
3
import java
2
- import semmle.code.java.frameworks.Servlets
3
4
import semmle.code.java.dataflow.DataFlow
5
+ import semmle.code.java.frameworks.Servlets
6
+
7
+ /** A URL redirection sink */
8
+ abstract class UrlRedirectSink extends DataFlow:: Node { }
4
9
5
- /**
6
- * A URL redirection sink.
7
- */
8
- class UrlRedirectSink extends DataFlow:: ExprNode {
9
- UrlRedirectSink ( ) {
10
+ /** A Servlet URL redirection sink. */
11
+ private class ServletUrlRedirectSink extends UrlRedirectSink {
12
+ ServletUrlRedirectSink ( ) {
10
13
exists ( MethodAccess ma |
11
14
ma .getMethod ( ) instanceof HttpServletResponseSendRedirectMethod and
12
15
this .asExpr ( ) = ma .getArgument ( 0 )
You can’t perform that action at this time.
0 commit comments