We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88634b8 commit 0f0bd34Copy full SHA for 0f0bd34
cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql
@@ -53,6 +53,7 @@ where
53
fctmp.getTarget().hasGlobalOrStdName("fopen") or
54
fctmp.getTarget().hasGlobalOrStdName("open")
55
) and
56
+ not fctmp.getArgument(1).getValue().matches("r%") and
57
fctmp.getNumberOfArguments() = 2 and
58
not fctmp.getArgument(0).getValue() = "/dev/null" and
59
fcsnd = fctmp
0 commit comments