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 (
|
if (
|
||||||
statement["Effect"] == "Allow"
|
statement["Effect"] == "Allow"
|
||||||
and "Condition" not in statement
|
and "Condition" not in statement
|
||||||
and "*" in str(statement["Principal"])
|
and (
|
||||||
|
"Principal" in statement
|
||||||
|
and "*" in str(statement["Principal"])
|
||||||
|
)
|
||||||
and (
|
and (
|
||||||
"s3:PutObject" in statement["Action"]
|
"s3:PutObject" in statement["Action"]
|
||||||
or "*" in statement["Action"]
|
or "*" in statement["Action"]
|
||||||
|
|||||||
Reference in New Issue
Block a user