Portainer Portainer is an open-source management tool designed for containers. It offers a user-friendly, lightweight web interface that simplifies the deployment and management of Docker environments. It’s important to note that while Portainer itself does not run with root privileges, if the Docker service managed by Portainer operates with root permissions, it could potentially lead to a remote root shell vulnerability, as discussed further.
Information Gathering Collecting Target Devices We’ll use Shodan Search Engine to Collect Target Devices.
On Shodan Search Engine search with query product:portainer, this would list out all the Devices that were identified running Portainer by Shodan.
After setting the requeired filters, we can download the results.
The Number of Results that can be downloaded depends upon your query credits available(1 Query Credit = 100 Results)
After Shodan has done compiling the data, it sends us a Mail that Data is ready for Download or we can alernatively wait on Shodan Download Page while the data is being compiled
The Download will be in the format .json.gz. Shodan provides a Command-Line Utility to Parse the data in these download files.
The utility can be installed with the command
...