mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
check for sensitive property name
This commit is contained in:
@@ -53,7 +53,8 @@ module Cookie {
|
||||
exists(string val |
|
||||
(
|
||||
val = expr.getStringValue() or
|
||||
val = expr.asExpr().(VarAccess).getName()
|
||||
val = expr.asExpr().(VarAccess).getName() or
|
||||
val = expr.(DataFlow::PropRead).getPropertyName()
|
||||
) and
|
||||
regexpMatchAuth(val)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user