MinIO未授权SSRF漏洞(CVE 您所在的位置:网站首页 minio漏洞修复了么 MinIO未授权SSRF漏洞(CVE

MinIO未授权SSRF漏洞(CVE

2024-06-29 13:15| 来源: 网络整理| 查看: 265

测试环境Centos8.2

一、启用Docker API

打开配置文件找到

ExecStart=/usr/bin/dockerd 

ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

重启

$ systemctl daemon-reload $ systemctl restart docker

查看端口是否启用

[root@localhost ~]# netstat -nltp |grep 2375 tcp6 0 0 :::2375 :::* LISTEN 4449/dockerd [root@localhost ~]#

访问一下

curl -X GET http://127.0.0.1:2375/images/json

如果有结果说明是成功的。

 

Docker 安装 minio

docker-compose.yml version: '3.7' services: minio1: image: minio/minio:RELEASE.2021-01-16T02-19-44Z volumes: - data1-1:/data1 - data1-2:/data2 ports: - "9000:9000" environment: MINIO_ACCESS_KEY: minio MINIO_SECRET_KEY: minio123 command: server http://minio{1...4}/data{1...2} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 30s timeout: 20s retries: 3 ## By default this config uses default local driver, ## For custom volumes replace with volume driver configuration. volumes: data1-1: data1-2:

启动

[root@localhost momo]# [root@localhost momo]# docker-compose -f docker-compose2.yml up Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Pulling minio1 (minio/minio:RELEASE.2021-01-16T02-19-44Z)... RELEASE.2021-01-16T02-19-44Z: Pulling from minio/minio a6b97b4963f5: Pull complete 13948a011eec: Pull complete b27f7b93c977: Pull complete 527a35f50a95: Pull complete bae74d83b250: Pull complete 0f5c2801c42c: Pull complete 23c30f3146bf: Pull complete Digest: sha256:a176d2194523a587f4103bce5e8d408e7aadc737e7e67067ca9c195a2b69fbe4 Status: Downloaded newer image for minio/minio:RELEASE.2021-01-16T02-19-44Z Recreating momo_minio1_1 ... done

启动之后需要等等。大概一分钟左右。才能访问

 

 

测试一下SSRF

 

 

可以导致SSRF 那么添加一个DockerFile 通过API来进行创建容器

 

首先需要80 端口的index.php

这里我是用宝塔搭建的网站

index.php如下:



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有