File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
semmle/code/java/security Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class ResponseSplittingConfig extends TaintTracking::Configuration {
19
19
20
20
override predicate isSource ( DataFlow:: Node source ) {
21
21
source instanceof RemoteFlowSource and
22
- not source instanceof TrustedSource
22
+ not source instanceof SafeHeaderSplittingSource
23
23
}
24
24
25
25
override predicate isSink ( DataFlow:: Node sink ) { sink instanceof HeaderSplittingSink }
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ class ServletHeaderSplittingSink extends HeaderSplittingSink {
31
31
}
32
32
}
33
33
34
- class TrustedServletSource extends TrustedSource {
35
- TrustedServletSource ( ) {
34
+ class ServletSafeHeaderSplittingSource extends SafeHeaderSplittingSource {
35
+ ServletSafeHeaderSplittingSource ( ) {
36
36
this .asExpr ( ) .( MethodAccess ) .getMethod ( ) instanceof HttpServletRequestGetHeaderMethod or
37
37
this .asExpr ( ) .( MethodAccess ) .getMethod ( ) instanceof CookieGetNameMethod
38
38
}
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ abstract class HeaderSplittingSink extends DataFlow::ExprNode { }
8
8
/**
9
9
* Sources that cannot be used to perform a header splitting attack.
10
10
*/
11
- abstract class TrustedSource extends DataFlow:: ExprNode { }
11
+ abstract class SafeHeaderSplittingSource extends DataFlow:: ExprNode { }
You can’t perform that action at this time.
0 commit comments