Skip to content

Commit 1188e18

Browse files
committed
Java: Whitelist Cookie::getName for HTTP response splitting.
1 parent c78f3f8 commit 1188e18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/Security/CWE/CWE-113/ResponseSplitting.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class HeaderSplittingSink extends DataFlow::ExprNode {
3232

3333
class WhitelistedSource extends RemoteUserInput {
3434
WhitelistedSource() {
35-
this.asExpr().(MethodAccess).getMethod() instanceof HttpServletRequestGetHeaderMethod
35+
this.asExpr().(MethodAccess).getMethod() instanceof HttpServletRequestGetHeaderMethod or
36+
this.asExpr().(MethodAccess).getMethod() instanceof CookieGetNameMethod
3637
}
3738
}

0 commit comments

Comments
 (0)