Skip to content

Conversation

@TheRedHatter
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • vendor/github.com/projectdiscovery/mapcidr/Dockerfile

We recommend upgrading to alpine:3.20.3, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
low severity CVE-2024-6119
SNYK-ALPINE320-OPENSSL-7895537
  436  
low severity CVE-2024-6119
SNYK-ALPINE320-OPENSSL-7895537
  436  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2024

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prisma Cloud has found errors in this PR ⬇️

RUN go install -v github.com/projectdiscovery/mapcidr/cmd/mapcidr@latest

FROM alpine:latest
FROM alpine:3.20.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOW  A user for the container has not been created
    Resource: /vendor/github.com/projectdiscovery/mapcidr/Dockerfile. | Checkov ID: CKV_DOCKER_3

Description

The policy's primary purpose is to verify that a dedicated user has been explicitly created for running the container. This is essential to avoid running the container with root privileges, which could introduce significant security risks in case of a compromise. Running containers as a non-root user reduces the potential impact of a security breach.

RUN go install -v github.com/projectdiscovery/mapcidr/cmd/mapcidr@latest

FROM alpine:latest
FROM alpine:3.20.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOW  Healthcheck instructions have not been added to container images
    Resource: /vendor/github.com/projectdiscovery/mapcidr/Dockerfile. | Checkov ID: CKV_DOCKER_2

Description

We recommend that you add the HEALTHCHECK instruction to your Docker container images to ensure that health checks are executed against running containers.
An important security control is that of availability.
Adding the HEALTHCHECK instruction to your container image ensures that the Docker engine periodically checks the running container instances against that instruction to ensure that containers are still operational.
Based on the results of the health check, the Docker engine could terminate containers which are not responding correctly, and instantiate new ones.

@TheRedHatter
Copy link
Owner Author

Logo
Checkmarx One – Scan Summary & Detailsfbec9b44-48fe-4da1-8096-6ff167bf7490

New Issues

Severity Issue Source File / Package Checkmarx Insight
HIGH CVE-2023-45288 Go-golang.org/x/net-v0.7.0 Vulnerable Package
HIGH CVE-2024-24786 Go-google.golang.org/protobuf-v1.28.1 Vulnerable Package
HIGH CVE-2024-40641 Go-github.com/projectdiscovery/nuclei/v2-v2.7.7 Vulnerable Package
HIGH Missing User Instruction /Dockerfile: 4 A user should be specified in the dockerfile, otherwise the image will run as root
HIGH Passwords And Secrets - Generic Password /localFinger.json: 10596 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /WAVLINK_WN535G3_POST_XSS_CVE_2022_30489.json: 32 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /XXL_JOB_Default_password.json: 28 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /datang-ac-default-password-cnvd-2021-04128.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /浪潮tscev4命令执行.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /ZhongXinJingDun_Default_administrator_password.json: 65 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Alibaba_Nacos_Default_password.json: 29 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /WAVLINK_WN535G3_POST_XSS_CVE_2022_30489.json: 67 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /D_Link_AC_Centralized_management_system__Default_weak_password.json: 28 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /SDWAN_Smart_Gateway_Default_Password.json: 32 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /panabit-ixcache-default-password.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /D-Link_AC_management_system_Default_Password.json: 32 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /mallgard.json: 26 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /XXL_JOB_Default_Login.json: 34 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /zabbix-default-password.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Wayos_AC_Centralized_management_system_Default_Password_CNVD_2021_00876.json: 34 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Wayos AC集中管理系统默认弱口令 CNVD-2021-00876.json: [28](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//lib/goby/goby_pocs/Wayos AC集中管理系统默认弱口令 CNVD-2021-00876.json#L28) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /XXL-JOB 任务调度中心 后台默认弱口令.json: [26](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//lib/goby/goby_pocs/XXL-JOB 任务调度中心 后台默认弱口令.json#L26) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /SDWAN_smart_gateway_weak_password.json: 26 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Alibaba Nacos 控制台默认弱口令.json: [28](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//lib/goby/goby_pocs/Alibaba Nacos 控制台默认弱口令.json#L28) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /D-Link AC集中管理系统默认弱口令.json: [28](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//lib/goby/goby_pocs/D-Link AC集中管理系统默认弱口令.json#L28) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Alibaba_Nacos_Default_password.json: 56 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /alibaba-nacos-v1-auth-bypass.json: 10 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /rockmongo-default-password.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Mallgard_Firewall_Default_Login_CNVD_2020_73282.json: 34 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Hsmedia_Hgateway_Default_account.json: 28 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Alibaba Nacos 控制台默认弱口令.json: [54](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//lib/goby/goby_pocs/Alibaba Nacos 控制台默认弱口令.json#L54) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /panabit-gateway-default-password.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /ZhongXinJingDun_Information_Security_Management_System_Default_Login.json: 69 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Wayos_AC_Centralized_management_system_Default_weak_password.json: 28 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /showdoc-default-password.json: 12 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Password /Datang_AC_Default_Password.json: 30 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /cve_2022_1388_goby.json: 35 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /齐治堡垒机任意用户登录.json: 10 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /Shterm_QiZhi_Fortress_Unauthorized_Access_CNVD_2019_27717.json: 28 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /cve_2022_1388_goby.json: 73 Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /H3C SecParh堡垒机任意用户登录.json: [11](https://github.com/TheRedHatter/scan4all/blob/snyk-fix-2e344a319039512dbd50d9dbd91b5f0e//config/poc/h3c/H3C SecParh堡垒机任意用户登录.json#L11) Query to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Token /shtermQiZhi_Fortress_Arbitrary_User_Login.json: 22 Query to find passwords and secrets in infrastructure code.
MEDIUM CVE-2024-0406 Go-github.com/mholt/archiver-v3.1.1 Vulnerable Package
MEDIUM CVE-2024-6104 Go-github.com/hashicorp/go-retryablehttp-v0.7.1 Vulnerable Package
LOW Healthcheck Instruction Missing /Dockerfile: 4 Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working

Fixed Issues

Severity Issue Source File / Package
HIGH CVE-2023-42818 Go-golang.org/x/crypto-v0.0.0-20220829220503-c86fa9a7ed90
HIGH Missing User Instruction /Dockerfile: 4
HIGH Passwords And Secrets - Generic Password /loancms-sqli.yaml: 27
HIGH Passwords And Secrets - Generic Password /db_tests: 3191
HIGH Passwords And Secrets - Generic Password /CVE-2022-22972.yaml: 38
HIGH Passwords And Secrets - Generic Password /CVE-2022-0824.yaml: 39
HIGH Passwords And Secrets - Generic Password /CVE-2020-17456.yaml: 28
HIGH Passwords And Secrets - Generic Password /CVE-2007-4556.yaml: 25
HIGH Passwords And Secrets - Generic Password /rusty-joomla.yaml: 29
HIGH Passwords And Secrets - Generic Password /CVE-2014-9614.yaml: 27
HIGH Passwords And Secrets - Generic Password /lutron-iot-default-login.yaml: 14
HIGH Passwords And Secrets - Generic Password /db_tests: 1355
HIGH Passwords And Secrets - Generic Password /CVE-2019-17444.yaml: 29
HIGH Passwords And Secrets - Generic Password /db_tests: 1113
HIGH Passwords And Secrets - Generic Password /CVE-2022-29383.yaml: 36
HIGH Passwords And Secrets - Generic Password /CVE-2022-29009.yaml: 28
HIGH Passwords And Secrets - Generic Password /CVE-2019-18818.yaml: 28
HIGH Passwords And Secrets - Generic Password /db_tests: 2888
HIGH Passwords And Secrets - Generic Password /CVE-2017-18024.yaml: 26
HIGH Passwords And Secrets - Generic Password /CVE-2022-29007.yaml: 28
HIGH Passwords And Secrets - Generic Password /dataiku-default-login.yaml: 22
HIGH Passwords And Secrets - Generic Password /CVE-2022-29383.yaml: 29
HIGH Passwords And Secrets - Generic Password /CVE-2017-12635.yaml: 32
HIGH Passwords And Secrets - Generic Password /tomcat-pathnormalization.yaml: 25
HIGH Passwords And Secrets - Generic Password /ricoh-weak-password.yaml: 23
HIGH Passwords And Secrets - Generic Password /CVE-2015-7245.yaml: 26
HIGH Passwords And Secrets - Generic Password /3com-nj2000-default-login.yaml: 23
HIGH Passwords And Secrets - Generic Password /CVE-2022-32022.yaml: 30
HIGH Passwords And Secrets - Generic Password /CVE-2022-31269.yaml: 49
HIGH Passwords And Secrets - Generic Password /CVE-2022-30489.yaml: 30
HIGH Passwords And Secrets - Generic Password /CVE-2020-13117.yaml: 30
HIGH Passwords And Secrets - Generic Password /webui-rce.yaml: 19
HIGH Passwords And Secrets - Generic Password /db_tests: 6754
HIGH Passwords And Secrets - Generic Password /CVE-2019-16097.yaml: 28
HIGH Passwords And Secrets - Generic Password /CVE-2022-37153.yaml: 29
HIGH Passwords And Secrets - Generic Password /db_tests: 1187
HIGH Passwords And Secrets - Generic Password /CVE-2022-29006.yaml: 28
HIGH Passwords And Secrets - Generic Password /CVE-2018-20010.yaml: 36
HIGH Passwords And Secrets - Generic Password /db_tests: 2889
HIGH Passwords And Secrets - Generic Password /db_tests: 1244
HIGH Passwords And Secrets - Generic Password /db_tests: 1109
HIGH Passwords And Secrets - Generic Password /CVE-2020-13167.yaml: 25
HIGH Passwords And Secrets - Generic Password /CVE-2019-14223.yaml: 28
HIGH Passwords And Secrets - Generic Password /db_tests: 6768
HIGH Passwords And Secrets - Generic Password /db_tests: 6753
HIGH Passwords And Secrets - Generic Password /CVE-2019-1010287.yaml: 29
HIGH Passwords And Secrets - Generic Password /db_tests: 2887
HIGH Passwords And Secrets - Generic Password /db_tests: 523
HIGH Passwords And Secrets - Generic Password /db_tests: 1128
HIGH Passwords And Secrets - Generic Password /db_tests: 952
HIGH Passwords And Secrets - Generic Password /ruijie-information-disclosure.yaml: 21
HIGH Passwords And Secrets - Generic Password /CVE-2022-0968.yaml: 42
HIGH Passwords And Secrets - Generic Password /db_tests: 6698
HIGH Passwords And Secrets - Generic Password /db_tests: 6755
HIGH Passwords And Secrets - Generic Password /CVE-2019-9733.yaml: 32
HIGH Passwords And Secrets - Generic Password /db_tests: 1099
HIGH Passwords And Secrets - Generic Password /unauthenticated-nacos-access.yaml: 7
HIGH Passwords And Secrets - Generic Password /CNVD-2020-23735.yaml: 19
HIGH Passwords And Secrets - Generic Secret /api-petfinder.yaml: 22
HIGH Passwords And Secrets - Generic Secret /CVE-2022-2546.yaml: 34
HIGH Passwords And Secrets - Generic Token /db_tests: 6731
HIGH Passwords And Secrets - Generic Token /CVE-2018-19892.yaml: 36
HIGH Passwords And Secrets - Generic Token /CVE-2017-9822.yaml: 27
HIGH Passwords And Secrets - Generic Token /.goreleaser.yml: 10
HIGH Passwords And Secrets - Generic Token /CVE-2022-1388.yaml: 34
HIGH Passwords And Secrets - Generic Token /CVE-2019-8451.yaml: 31
HIGH Passwords And Secrets - Generic Token /versa-flexvnf-default-login.yaml: 57
HIGH Passwords And Secrets - Generic Token /db_tests: 6247
HIGH Passwords And Secrets - Generic Token /.coveralls.yml: 1
HIGH Passwords And Secrets - Generic Token /CVE-2020-16846.yaml: 24
HIGH Passwords And Secrets - Generic Token /ricoh-weak-password.yaml: 23
HIGH Passwords And Secrets - Generic Token /hue-default-credential.yaml: 62
HIGH Passwords And Secrets - Generic Token /rainloop-default-login.yaml: 43
HIGH Passwords And Secrets - Generic Token /CVE-2019-8446.yaml: 27
HIGH Passwords And Secrets - Generic Token /CVE-2018-7700.yaml: 22
HIGH Passwords And Secrets - Generic Token /CVE-2021-21287.yaml: 29
HIGH Passwords And Secrets - Generic Token /CVE-2022-1388.yaml: 47
HIGH Passwords And Secrets - Password in URL /CVE-2019-8451.yaml: 28
HIGH Passwords And Secrets - Password in URL /cloudinary-credentials.yaml: 18
MEDIUM Host Namespace is Shared /docker-compose.yml: 4
MEDIUM Host Namespace is Shared /docker-compose.yml: 27
MEDIUM Host Namespace is Shared /docker-compose.yml: 4
MEDIUM Host Namespace is Shared /.drone.yml: 47
MEDIUM Image Version Using 'latest' /Dockerfile: 4
MEDIUM Networks Not Set /docker-compose.yml: 27
MEDIUM Networks Not Set /docker-compose.yml: 4
MEDIUM Networks Not Set /.drone.yml: 47
MEDIUM Networks Not Set /docker-compose.yml: 4
LOW Healthcheck Instruction Missing /Dockerfile: 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants