Skip to content

Commit 54ed25a

Browse files
committed
Change False and None scopes
1 parent c8a7f48 commit 54ed25a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/ql/src/experimental/Security/CWE-614/InsecureCookie.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import semmle.python.dataflow.new.DataFlow
1515
import semmle.python.Concepts
1616
import experimental.semmle.python.Concepts
1717

18-
from Expr cookieExpr, False f, None n
18+
from Expr cookieExpr
1919
where
2020
exists(HeaderDeclaration headerWrite, StrConst headerName, StrConst headerValue |
2121
headerName.getText() = "Set-Cookie" and
@@ -25,7 +25,7 @@ where
2525
cookieExpr = headerWrite.asExpr()
2626
)
2727
or
28-
exists(ExperimentalHTTP::CookieWrite cookieWrite |
28+
exists(ExperimentalHTTP::CookieWrite cookieWrite, False f, None n |
2929
[DataFlow::exprNode(f), DataFlow::exprNode(n)]
3030
.(DataFlow::LocalSourceNode)
3131
.flowsTo(cookieWrite.(DataFlow::CallCfgNode).getArgByName("secure")) and

0 commit comments

Comments
 (0)