check for sensitive property name

This commit is contained in:
edvraa
2021-05-03 00:31:29 +03:00
parent 7ab91bb185
commit 97bc7e38d2
3 changed files with 14 additions and 1 deletions

View File

@@ -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)
)