Improper Privilege Management Affecting @aws-amplify/cli package, versions <12.10.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AWSAMPLIFYCLI-6615833
  • published16 Apr 2024
  • disclosed15 Apr 2024
  • creditDatadog Security Research

Introduced: 15 Apr 2024

CVE-2024-28056  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade @aws-amplify/cli to version 12.10.1 or higher.

Overview

@aws-amplify/cli is an Amplify CLI

Affected versions of this package are vulnerable to Improper Privilege Management due to incorrect configuration of the role trust policy for IAM roles associated with Amplify projects. Specifically, when the Authentication component is removed, a Condition property is also removed while leaving "Effect":"Allow" intact. This oversight allows the sts:AssumeRoleWithWebIdentity action to be available without any conditions, potentially enabling unauthorized access to an organization's AWS resources. This issue arises if an authorized AWS user removes the Authentication component, which could realistically occur if there's a decision to discontinue using built-in Cognito resources or to switch to a different identity provider.

CVSS Scores

version 3.1