There was an error while loading. Please reload this page.
1 parent 0d1c4a1 commit b2f2f78Copy full SHA for b2f2f78
1 file changed
ql/src/queries/security/cwe-732/WeakFilePermissions.ql
@@ -40,9 +40,7 @@ bindingset[p]
40
string access(int p) {
41
p.bitAnd(2) != 0 and result = "writable"
42
or
43
- // report only the "most permissive" permission, i.e. report the file as
44
- // readable only if it is not also writable
45
- p.bitAnd(2) = 0 and p.bitAnd(4) != 0 and result = "readable"
+ p.bitAnd(4) != 0 and result = "readable"
46
}
47
48
/** An expression specifing a file permission that allows group/others read or write access */
0 commit comments