Update IncorrectPrivilegeAssignment.ql

This commit is contained in:
ihsinme
2021-11-14 11:57:40 +03:00
committed by GitHub
parent ea1d18ed60
commit e383e44d36

View File

@@ -34,7 +34,7 @@ where
fc.getArgument(0).getValue() = "0" and
not exists(FunctionCall fctmp |
fctmp.getTarget().hasGlobalOrStdName("umask") and
globalValueNumber(fctmp.getArgument(0)) != globalValueNumber(fc.getArgument(0))
fctmp.getArgument(0).getValue() != "0"
) and
exists(FunctionCall fctmp |
(