Skip to content
Misconfiguration Write-up Advanced

Exploiting AWS IAM permissions for total cloud compromise: a real world example (1/2)

An exposed Hadoop ResourceManager allowed remote code execution, and configuration files on the compromised host contained AWS access keys. Those keys had limited permissions but allowed listing S3 buckets, and further enumeration revealed a role with administrator privileges that could be assumed by EC2 instances.

medium.com

Published on medium.com

Note: Here’s the link to part 2.

Security Shenanigans, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

The attackers could escalate privileges to full administrative control over the AWS account, potentially compromising all cloud resources.

What the attacker needed

Exposed Hadoop ResourceManager; Network access to the service; AWS credentials in config files

How it was found

  1. Exploit the exposed Hadoop ResourceManager to achieve remote code execution.
  2. Scan the internal network and find a master Hadoop node with an exposed service on port 9290.
  3. Download configuration files from the Hadoop service.
  4. Search the downloaded files for AWS access keys and secret keys.
  5. Use the found credentials to enumerate IAM permissions and S3 buckets.
  6. Identify a role with administrator privileges that can be assumed by EC2 instances.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A Hadoop server was left open to the internet without a password, letting attackers run commands on it. The server's configuration files contained secret keys for an Amazon Web Services (AWS) account. Those keys had limited permissions, but the attackers used them to explore the cloud environment and found a way to gain full control.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.