8000 GitHub - kannkyo/buggy-docker: 脆弱な Dockerfile の例です。
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kannkyo/buggy-docker

Repository files navigation

buggy-docker

脆弱な Dockerfile の例です。

docker ci docker publish

埋め込まれている脆弱性

Dockerfile の脆弱性

CIS Docker Benchmarks で定義されている以下の脆弱性を埋め込んでいます。

  • CIS 4.1 Create a user for the container
  • CIS 4.2 Use trusted base images for containers (user provide trusted base image list)
  • CIS 4.3 Do not install unnecessary packages in the container (user provide the disallowed package list)
  • CIS 4.6 Add HEALTHCHECK instruction to the container image
  • CIS 4.7 Do not use update instructions alone in the Dockerfile
  • CIS 4.9 Use COPY instead of ADD in Dockerfile
  • CIS 4.10 Do not store secrets in Dockerfiles (user provide the secret pattern, only checks contents in ENV and LABEL instructions)

ベースイメージの脆弱性

本ページ執筆時点(2021.11.27)で、ベースイメージのhttpd:2.4.51には、curlとglibcに関する脆弱性が含まれています。

✗ High severity vulnerability found in curl/libcurl4
  Description: Cleartext Transmission of Sensitive Information
  Info: https://snyk.io/vuln/SNYK-DEBIAN11-CURL-1585138
  Introduced through: curl/libcurl4@7.74.0-1.3+b1
  From: curl/libcurl4@7.74.0-1.3+b1
  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)

✗ Critical severity vulnerability found in glibc/libc-bin
  Description: Use After Free
  Info: https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-1296898
  Introduced through: glibc/libc-bin@2.31-13+deb11u2, meta-common-packages@meta
  From: glibc/libc-bin@2.31-13+deb11u2
  From: meta-common-packages@meta > glibc/libc6@2.31-13+deb11u2
  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)

✗ Critical severity vulnerability found in curl/libcurl4
  Description: Double Free
  Info: https://snyk.io/vuln/SNYK-DEBIAN11-CURL-1585150
  Introduced through: curl/libcurl4@7.74.0-1.3+b1
  From: curl/libcurl4@7.74.0-1.3+b1
  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)

使用している脆弱性スキャナー

GitHub Actioons で以下の脆弱性スキャナーを使って、脆弱性をチェックしています。

0