…and on to the story.
The Hue web interface on an AWS EMR cluster allowed the creation of a new admin user by default, and that user could schedule shell scripts to run on cluster nodes, leading to reverse shells and potential lateral movement within the VPC.
blackhillsinfosec.com
Published on blackhillsinfosec.com
BHIS made some interesting discoveries while working with a customer to audit their Amazon Web Services (AWS) infrastructure. At the time of the discovery, we found two paths to ingress the customer’s virtual private cloud (VPC) through the elastic map reduce (EMR) application stacks.
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
Root cause
Likely the Hue service was configured to allow unauthenticated creation of an administrative user, and its workflow scheduler permitted execution of arbitrary shell commands.
Impact
An attacker could gain shell access to cluster nodes and potentially move laterally within the VPC; the text notes that this is not necessarily a vulnerability but a significant risk, and that exposure is limited if the interface is not publicly accessible.
What the attacker needed
Hue interface accessible; Default Hue configuration
How it was found
- Access the Hue interface, which is waiting for a new admin user.
- Create a new admin user.
- Navigate to the scheduler and create a workflow.
- Drag and drop the 'shell' option.
- Upload a shell script or enter a command.
- Save and run the workflow to execute the shell script.
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.
When you start an Amazon EMR cluster, it includes a web tool called Hue that lets you manage data jobs. By default, Hue lets anyone create an admin account without a password. That admin can then schedule commands that run on the cluster's computers, giving an attacker control over them.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.