mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Update IncorrectPrivilegeAssignment.ql
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user