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 22
33import java
44import semmle.code.java.dataflow.DataFlow
5+ import semmle.code.java.dataflow.FlowSources
56import semmle.code.java.frameworks.Servlets
67import semmle.code.java.frameworks.JaxWS
78
89/** Header-splitting sinks. Expressions that end up in an HTTP header. */
910abstract class HeaderSplittingSink extends DataFlow:: Node { }
1011
1112/** 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+ }
1316
1417/** Servlet and JaxWS sinks susceptible to header splitting. */
1518private class ServletHeaderSplittingSink extends HeaderSplittingSink {
You can’t perform that action at this time.
0 commit comments