Improper Privilege Management Affecting @aws-amplify/amplify-provider-awscloudformation package, versions <8.10.2


0.0
high

Snyk CVSS

    Attack Complexity High
    Confidentiality High
    Integrity High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (15th 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 ID SNYK-JS-AWSAMPLIFYAMPLIFYPROVIDERAWSCLOUDFORMATION-6615879
  • published 16 Apr 2024
  • disclosed 15 Apr 2024
  • credit Datadog Security Research

How to fix?

Upgrade @aws-amplify/amplify-provider-awscloudformation to version 8.10.2 or higher.

Overview

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.