← 返回列表

AWS CDK Bucket Squatting Risk

单站 CloudVulnDB 发布 Thu, 24 Oct 2024 00:00:00 GMT 入库 2026-11-18T07:04:25

medium

AWS CDK Bucket Squatting Risk

Published Thu, Oct 24th, 2024

Platforms

aws

The AWS Cloud Development Kit (CDK) is a way of deploying infrastructure-as-code. The vulnerability involves AWS CDK’s use of a predictable S3 bucket name format (cdk-{Qualifier}-assets-{Account-ID}-{Region}), where the default “random” qualifier (hnb659fds) is common and easily guessed. If an AWS customer deletes this bucket and reuses CDK, an attacker who claims the bucket can inject malicious CloudFormation templates, potentially gaining admin access. Attackers supposedly only need the AWS account ID to prepare the bucket in various regions, exploiting the default naming convention. However, it is important to note that the additional conditions greatly lower the likelihood of exploitation. The victim must use the CDK, having deleted the bucket, and then subsequently attempt to deploy with the CDK. Making it so that even if there is a vulnerable account, it could be months, if ever for the attack to work.

Cloud Development Kit (CDK)

User action is required to upgrade the CDK, and/or to update the CDK’s IAM role’s policy to include an IAM condition to ensure the S3 bucket is owned by the customer.

No tracked CVEs

Contributed by https://github.com/mer-b

Entry Status

Finalized

Disclosure Date

Thu, Jun 27th, 2024

Exploitability Period

Ongoing

Known ITW Exploitation

-

Detection Methods

None

Piercing Index Rating

Discovered by

Ofek Itach, Yakir Kadkoda, Aqua

Miggo Security

low

CloudTrail delivered events to the resource owner and API caller even when the API action was denied by the VPC endpoint policy. This could have enabled a stealthy data exfiltration method in cases...

high

A vulnerability in AWS CloudShell allowed users to gain unintended command-line access to the underlying AWS infrastructure. During a training session, a delegate unexpectedly received the identity...

Paul Schwarzenberger

原文链接:https://www.cloudvulndb.org/aws-cdk-squatting