Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89be8d8

Browse files
alexrfordaibaars
andauthored
Apply suggestions from code review
Co-authored-by: Arthur Baars <[email protected]>
1 parent 2154b7d commit 89be8d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ql/src/queries/security/cwe-732/WeakFilePermissions.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class PermissivePermissionsExpr extends Expr {
5252
(acc = access(world_permission(perm)) or acc = access(group_permission(perm)))
5353
)
5454
or
55-
// adding/setting read or write permissions for all/group/owner
56-
this.(StringLiteral).getValueText().regexpMatch(".*[ago][^-=+]*[+=]*[xXst]*[rw].*")
55+
// adding/setting read or write permissions for all/group/other
56+
this.(StringLiteral).getValueText().regexpMatch(".*[ago][^-=+]*[+=][xXst]*[rw].*")
5757
}
5858
}
5959

0 commit comments

Comments
 (0)