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 e966a74 commit a7f7d1fCopy full SHA for a7f7d1f
ruby/ql/src/queries/security/cwe-732/WeakFilePermissions.ql
@@ -60,8 +60,9 @@ private module PermissivePermissionsConfig implements DataFlow::ConfigSig {
60
predicate observeDiffInformedIncrementalMode() { any() }
61
62
Location getASelectedSinkLocation(DataFlow::Node sink) {
63
- exists(FileSystemPermissionModification mod |
64
- sinkDef(sink, mod) and
+ exists(FileSystemPermissionModification mod | sinkDef(sink, mod) |
+ result = sink.getLocation()
65
+ or
66
result = mod.getLocation()
67
)
68
}
0 commit comments