kcve.ai취약점 정보 · 내 서버 확인

CVE-2018-16873 In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code exe…

설명

1.11.3 이전 1.10.6 및 1.11.x 이전 이동에서 "go get" 명령은 -u 플래그 및 악의적 인 Go 패키지의 가져오기 경로 또는 직접 또는 간접적으로 가져 오는 패키지로 실행될 때 원격 코드 실행에 취약합니다. 특히, GOPATH 모드에서만 취약하지만 모듈 모드에서는 취약하지 않습니다 (차이점은 https://golang.org/cmd/go/#hdr-Module_aware_go_get에서 문서화됩니다). 사용자 정의 도메인을 사용하면 Git 저장소가 "/.git"로 끝나는 허영 가져오기 경로를 사용하여 ".git" 폴더에 복제되도록 정렬할 수 있습니다. Git 저장소 루트에 "HEAD" 파일, "config" 파일, "objects" 디렉토리, "refs" 디렉토리가 있다면, 적절한 작업 순서를 보장하기 위해 "go get -u"를 사용해서 부모 디렉토리를 저장소 루트로 간주하고 Git 명령을 실행할 수 있다. 이 설정은 원래 Git 저장소 루트에 있는 "config" 파일을 사용하며, 이 설정 파일에 악성 명령이 포함되어 있으면 "go get -u"를 실행하는 시스템에서 실행됩니다.

기계 번역

원문 보기

In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). Using custom domains, it's possible to arrange things so that a Git repository is cloned to a folder named ".git" by using a vanity import path that ends with "/.git". If the Git repository root contains a "HEAD" file, a "config" file, an "objects" directory, a "refs" directory, with some work to ensure the proper ordering of operations, "go get -u" can be tricked into considering the parent directory as a repository root, and running Git commands on it. That will use the "config" file in the original Git repository root for its configuration, and if that config file contains malicious commands, they will execute on the system running "go get -u".

영향 받는 제품 제품 1개

  • [UNKNOWN]

    golang

    영향 받는 버전

    • 1.10.6
    • 1.11.3

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 10건

‹ 목록

운영 중인 서버의 점검 지원 범위가 궁금하면

도입 문의