File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
java/ql/src/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java
4
4
import semmle.code.java.dataflow.DataFlow
5
+ import semmle.code.java.dataflow.FlowSources
5
6
import semmle.code.java.frameworks.Servlets
6
7
import semmle.code.java.frameworks.JaxWS
7
8
8
9
/** Header-splitting sinks. Expressions that end up in an HTTP header. */
9
10
abstract class HeaderSplittingSink extends DataFlow:: Node { }
10
11
11
12
/** Sources that cannot be used to perform a header splitting attack. */
12
- abstract class SafeHeaderSplittingSource extends DataFlow:: Node { }
13
+ abstract class SafeHeaderSplittingSource extends DataFlow:: Node {
14
+ SafeHeaderSplittingSource ( ) { this instanceof RemoteFlowSource }
15
+ }
13
16
14
17
/** Servlet and JaxWS sinks susceptible to header splitting. */
15
18
private class ServletHeaderSplittingSink extends HeaderSplittingSink {
You can’t perform that action at this time.
0 commit comments