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.
- 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
- I created an administrator account with the login creds admin:password (please change these credentials!!!)
- The site redirected me to the portainer backend, which displayed the docker containers running on the box, see first screen shot
- 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:


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.
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
- Find the exposed Portainer service on the host.
- Log in with the default administrator credentials.
- View the Docker containers running on the box.
- 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.