Update IncorrectPrivilegeAssignment.ql

This commit is contained in:
Sergey
2021-12-13 20:35:13 +03:00
committed by GitHub
parent 88634b81bf
commit 0f0bd34958

View File

@@ -53,6 +53,7 @@ where
fctmp.getTarget().hasGlobalOrStdName("fopen") or
fctmp.getTarget().hasGlobalOrStdName("open")
) and
not fctmp.getArgument(1).getValue().matches("r%") and
fctmp.getNumberOfArguments() = 2 and
not fctmp.getArgument(0).getValue() = "/dev/null" and
fcsnd = fctmp