CentOS 7:git (RHSA-2020:2337)

high Nessus Plugin ID 137006

概要

遠端 CentOS Linux 主機缺少安全性更新。

說明

遠端 CentOS Linux 7 主機上安裝的套件受到 RHSA-2020:2337 公告中提及的弱點影響。

- 受影響的 Git 版本有一個弱點,可誘騙 Git 將私密憑證傳送至攻擊者控制的主機。此錯誤與 CVE-2020-5260 (GHSA-qm7j-c969-7j4q) 類似。該錯誤的修正程式仍為 _some_ credential 的洩漏提供了可能 (但攻擊者無法控制哪一個憑證)。Git 使用外部憑證協助程式來儲存和擷取作業系統提供的安全儲存中的密碼或其他憑證。從最近發佈的 Git 版本開始,被視為非法的特製 URL 會造成 Git 傳送空白模式給協助程式,導致缺少主機名稱和通訊協定欄位。許多協助程式會將此解譯為符合 _any_ URL,並傳回一些不明的已儲存密碼,進而將密碼洩漏給攻擊者的伺服器。藉由提供惡意 URL 至「git clone」可觸發此弱點。不過,受影響的 URL 看起來相當可疑;可能的途徑會是自動複製對使用者不可見的 URL 的系統 (例如 Git 子模組),或是圍繞 Git 構建的套件系統。問題的根源在 Git 本身,其不應將空白輸入提供給協助程式。不過,實際利用此弱點的能力取決於正在使用的協助程式。已知會觸發弱點的憑證協助程式:- Git 的儲存協助程式 - Git 的快取協助程式 - Git 的 contrib 目錄隨附的 osxkeychain 協助程式 (已知即使使用有弱點的 Git 版本也是安全的):- Git Credential Manager for Windows 應假設不在此清單中的任何協助程式都會觸發此弱點。(CVE-2020-11008)

請注意,Nessus 並未測試此問題,而是僅依據應用程式自我報告的版本號碼作出判斷。

解決方案

更新受影響的套件。

另請參閱

https://access.redhat.com/errata/RHSA-2020:2337

Plugin 詳細資訊

嚴重性: High

ID: 137006

檔案名稱: centos_RHSA-2020-2337.nasl

版本: 1.3

類型: local

代理程式: unix

已發布: 2020/6/2

已更新: 2024/10/9

支援的感應器: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Agentless Assessment, Continuous Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 4.4

Vendor

Vendor Severity: Important

CVSS v2

風險因素: Medium

基本分數: 5

時間性分數: 3.7

媒介: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS 評分資料來源: CVE-2020-11008

CVSS v3

風險因素: High

基本分數: 7.5

時間性分數: 6.5

媒介: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

時間媒介: CVSS:3.0/E:U/RL:O/RC:C

弱點資訊

CPE: p-cpe:/a:centos:centos:git-email, p-cpe:/a:centos:centos:emacs-git, p-cpe:/a:centos:centos:perl-git-svn, p-cpe:/a:centos:centos:git-daemon, p-cpe:/a:centos:centos:git-bzr, p-cpe:/a:centos:centos:git-instaweb, p-cpe:/a:centos:centos:gitk, p-cpe:/a:centos:centos:git-all, p-cpe:/a:centos:centos:git, p-cpe:/a:centos:centos:git-gnome-keyring, p-cpe:/a:centos:centos:emacs-git-el, p-cpe:/a:centos:centos:git-svn, p-cpe:/a:centos:centos:git-hg, p-cpe:/a:centos:centos:gitweb, p-cpe:/a:centos:centos:git-p4, p-cpe:/a:centos:centos:git-cvs, cpe:/o:centos:centos:7, p-cpe:/a:centos:centos:perl-git, p-cpe:/a:centos:centos:git-gui

必要的 KB 項目: Host/local_checks_enabled, Host/cpu, Host/CentOS/release, Host/CentOS/rpm-list

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2020/6/1

弱點發布日期: 2020/6/1

參考資訊

CVE: CVE-2020-11008

RHSA: 2020:2337