Saturday, December 21, 2024
HomeCVE/vulnerabilityCritical AWS Services Vulnerability Let Attackers Execute Remote Code

Critical AWS Services Vulnerability Let Attackers Execute Remote Code

Published on

SIEM as a Service

Hackers attack AWS as it hosts a vast number of high-value targets, including sensitive data, business applications, and cloud resources for organizations worldwide.

In February 2024, six AWS services were found to have some critical vulnerabilities. The services include CloudFormation, Glue, EMR, SageMaker, ServiceCatalog and CodeStar.

Cybersecurity analysts at Aquasec identified grave dangers associated with these vulnerabilities, such as remote code execution, full-service user takeover, AI module manipulation, sensitive data exposure, data exfiltration, and denial of service.

- Advertisement - SIEM as a Service

The major vulnerabilities identified included the “Shadow Resource” attack vector and the “Bucket Monopoly” technique.

Free Webinar on Detecting & Blocking Supply Chain Attack -> Book your Spot

AWS rectified the problems as soon as they were notified, however they advised users to implement the recommended mitigation measures since similar flaws might be present in other situations or services.

AWS Services Vulnerability

The automatic generation of S3 buckets for storing templates by AWS CloudFormation complies with a known terminology, “cf-templates-[12 char hash]-[region]”.

This pattern is consistent across regions except for the region name.

It is clear that this makes an opening for attackers to anticipate victim’s future use of Cloud formation and create buckets with matching names in unused regions.

If users initiate cloud formation in these regions, they may end up interacting unknowingly with attacker-owned ones consequently exposing themselves to risks of code execution, data manipulation, or account takeover.

This vulnerability affects numerous AWS services beyond CloudFormation as it is a “shadow resource.”

This relates to the fact that bucket names used globally are unique and also that some users are not even aware of automatically generated resources, which raises a fundamental security concern on AWS’ architecture.

Here below we have mentioned all vulnerabilities detected:-

  • AWS CloudFormation Vulnerability: “cf-templates-{Hash}-{Region}”
  • AWS Glue Vulnerability: “aws-glue-assets-{Account-ID}-{Region}”
  • AWS EMR Vulnerability: “aws-emr-studio-{Account-ID}-{Region}”
  • AWS SageMaker Vulnerability: “sagemaker-{Region}-{Account-ID}”
  • AWS CodeStar Vulnerability: “aws-codestar-{Region}-{Account-ID}”
  • AWS Service Catalog Vulnerability: “cf-templates-{Hash}-{Region}”

The number of open source projects that support AWS resource deployment is also vulnerable to similar “shadow resource” vulnerabilities. 

These can sometimes be seen when the projects generate S3 buckets with predictable names like account numbers or other unique identifiers. 

This predictability is what enables an attack type known as Bucket Monopoly where the attacker is able to identify naming patterns, discover unique IDs, and create multi-region buckets beforehand. 

The researcher further highlights the need for sensitization on treating Amazon Web Services (AWS) Account ID confidentially, securing resources fully, and maintaining active management of cloud-based resources.

Mitigations

Here below we have mentioned all the mitigations:-

  • Implement ‘aws:ResourceAccount’ Condition.
  • Verify the expected bucket owner.
  • Naming S3 Buckets.

Are you from SOC and DFIR Teams? Analyse Malware Incidents & get live Access with ANY.RUN -> Get 14 Days Free Access

Tushar Subhra
Tushar Subhra
Tushar is a Cyber security content editor with a passion for creating captivating and informative content. With years of experience under his belt in Cyber Security, he is covering Cyber Security News, technology and other news.

Latest articles

Threat Actors Selling Nunu Stealer On Hacker Forums

A new malware variant called Nunu Stealer is making headlines after being advertised on underground hacker...

Siemens UMC Vulnerability Allows Arbitrary Remote Code Execution

A critical vulnerability has been identified in Siemens' User Management Component (UMC), which could...

Foxit PDF Editor Vulnerabilities Allows Remote Code Execution

Foxit Software has issued critical security updates for its widely used PDF solutions, Foxit...

Windows 11 Privilege Escalation Vulnerability Lets Attackers Execute Code to Gain Access

Microsoft has swiftly addressed a critical security vulnerability affecting Windows 11 (version 23H2), which...

API Security Webinar

72 Hours to Audit-Ready API Security

APIs present a unique challenge in this landscape, as risk assessment and mitigation are often hindered by incomplete API inventories and insufficient documentation.

Join Vivek Gopalan, VP of Products at Indusface, in this insightful webinar as he unveils a practical framework for discovering, assessing, and addressing open API vulnerabilities within just 72 hours.

Discussion points

API Discovery: Techniques to identify and map your public APIs comprehensively.
Vulnerability Scanning: Best practices for API vulnerability analysis and penetration testing.
Clean Reporting: Steps to generate a clean, audit-ready vulnerability report within 72 hours.

More like this

Threat Actors Selling Nunu Stealer On Hacker Forums

A new malware variant called Nunu Stealer is making headlines after being advertised on underground hacker...

Siemens UMC Vulnerability Allows Arbitrary Remote Code Execution

A critical vulnerability has been identified in Siemens' User Management Component (UMC), which could...

Foxit PDF Editor Vulnerabilities Allows Remote Code Execution

Foxit Software has issued critical security updates for its widely used PDF solutions, Foxit...