Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to fix docker remote API loophole

Shulou Source: shulou.com Published: 2022-05-31 22:30:13 10月03日 Update

This article mainly explains "how to fix docker remote API loopholes". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to fix docker remote API vulnerabilities.

Vulnerability description

Docker is an open source application container engine, this vulnerability is to take advantage of an api interface opened by docker, because the permissions are not set properly, so that remote command execution can be made.

Test environment

A local virtual machine and a temporarily created Ali cloud server

Centos7

Docker-ce-18.09.9

Loophole recurrence

First, port 2375 is detected, and then a http:localhost:2375/version request is constructed if it is open. If the return packet is in json format, the vulnerability exists.

1. Install docker

Configure host Nic forwarding

# # if not configured, you need to execute the following $cat

Tags: Vulnerabilities containers directories ports configurations hosts hosts content interfaces files learning input can be passed commands keys conditions instructions servers permissions standards Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker Shulou Tech Info Shulou Information Huawei