mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(s3_bucket_policy_public_write_access): Handle S3 Policy without Principal (#2871)
This commit is contained in:
@@ -41,7 +41,10 @@ class s3_bucket_policy_public_write_access(Check):
|
||||
if (
|
||||
statement["Effect"] == "Allow"
|
||||
and "Condition" not in statement
|
||||
and (
|
||||
"Principal" in statement
|
||||
and "*" in str(statement["Principal"])
|
||||
)
|
||||
and (
|
||||
"s3:PutObject" in statement["Action"]
|
||||
or "*" in statement["Action"]
|
||||
|
||||
Reference in New Issue
Block a user