Skip to content

Commit

Permalink
Merge pull request RhinoSecurityLabs#386 from DaveYesland/bug/key_err…
Browse files Browse the repository at this point in the history
…or_privesc_scan

fix RhinoSecurityLabs#329 key error issue with iam__privesc_scan
  • Loading branch information
DaveYesland authored Jan 5, 2024
2 parents f31cd77 + adc97eb commit d4dd66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pacu/modules/iam__privesc_scan/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def dict_lower(input_dict):
if perm in target["Permissions"][effect]:
checked_perms[effect][perm] = target["Permissions"][effect][perm]
else:
for target_perm in target["Permissions"][effect].keys():
for target_perm in target["Permissions"][effect]:
if "*" in target_perm:
pattern = re.compile(target_perm.replace("*", ".*"))
if pattern.search(perm) is not None:
Expand Down

0 comments on commit d4dd66a

Please sign in to comment.