Skip to content
Misconfiguration Disclosed report Beginner

RCE on 17 different Docker containers on your network

An unconfigured Portainer service was exposed on a public host, and it accepted default administrator credentials. An attacker could log in, view the running Docker containers and execute arbitrary commands inside them.

0x0luke Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in under an hour
  • Fixed in 45 hours
  • Disclosed after 43 days

Summary:

I was able to get RCE on 17 different docker containers, ranging from postgres and some prod enviroments

Steps To Reproduce:

I found that there was a unconfigured portainer.io service running on http://spreed-demo.nextcloud.com:9000

  1. I created an administrator account with the login creds admin:password (please change these credentials!!!)
  2. The site redirected me to the portainer backend, which displayed the docker containers running on the box, see first screen shot
  3. I was able to fully interact with the docker containers running, the site also allows me to execute arbitrary bash commands on the boxes, See second screenshot

Other info that was disclosed to me from the panel: Internal IP addresses, Docker disk volumes Docker images, The docker stacks

Supporting Material/References:

RCE.PNG
RCE.PNG From the original on HackerOne
RCE2.PNG
RCE2.PNG

Impact

An attacker can directly take over each docker container on this system to deploy his own malware, run DDoS attacks etc from inside Nextclouds services.

The original report as published on HackerOne, by 0x0luke. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely an internet-exposed Portainer instance left with default administrator credentials and no access restriction.

Impact

An attacker could take over each Docker container on the system to deploy malware or run DDoS attacks from inside the provider's services.

What the attacker needed

Portainer service exposed on the host; Default admin credentials unchanged

How it was found

  1. Find the exposed Portainer service on the host.
  2. Log in with the default administrator credentials.
  3. View the Docker containers running on the box.
  4. Use the panel to execute arbitrary commands on the containers.

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 report has not been written yet. The Original tab links to the source.

Portainer is a web tool for managing Docker containers, which are packaged pieces of software that run on a server. This one was unconfigured and used the default login, so anyone with those credentials could get in. Once inside, the attacker could run commands on the containers.

What is Misconfiguration?

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

More by 0x0luke

View all

6 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

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.