Amazon Linux AMI:postgresql93 / postgresql94,postgresql95 (ALAS-2017-839)

high Nessus プラグイン ID 100640

概要

リモートのAmazon Linux AMIホストに、セキュリティ更新プログラムがありません。

説明

選択性推定ツールが SELECT 権限チェックをバイパスします。

一部の selectivity estimation 関数では、pg_statistic からの情報を取得する前のユーザーの権限チェックが行われず、情報が漏洩する可能性があることがわかりました。権限のない攻撃者がこの欠陥を悪用して、権限がなければアクセスできないテーブルから情報を盗む可能性があります。(CVE-2017-7484)

libpqがPGREQUIRESSL環境変数を無視します。

PGREQUIRESSL が PostgreSQL サーバーへの SSL/TLS 接続を強制していないことが判明しました。中間にいる攻撃者がこの欠陥を悪用し、クライアントとサーバーの間での接続から、SSL/TLS 保護を除外する可能性があります。(CVE-2017-7485)

pg_user_mappings ビューが外部サーバーのパスワードを漏洩します

postgresql が pg_user_mappings ビューにアクセスすると、外部データベースとのユーザーマッピングに関する情報が権限のないユーザーに漏えいする可能性があることがわかりました。このマッピングの USAGE 権限を持つ認証された攻撃者は、ビューを照会するときに、外部データベースへの接続に使用されるユーザー名とパスワードなどのユーザーマッピングデータを取得する可能性があります。(CVE-2017-7486)

ソリューション

「yum update postgresql93」を実行してシステムを更新してください。

「yum update postgresql94」を実行してシステムを更新してください。

「yum update postgresql95」を実行してシステムを更新してください。

参考資料

https://alas.aws.amazon.com/ALAS-2017-839.html

プラグインの詳細

深刻度: High

ID: 100640

ファイル名: ala_ALAS-2017-839.nasl

バージョン: 3.5

タイプ: local

エージェント: unix

公開日: 2017/6/7

更新日: 2018/4/18

サポートされているセンサー: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

リスク情報

VPR

リスクファクター: Low

スコア: 3.6

CVSS v2

リスクファクター: Medium

基本値: 5

ベクトル: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS v3

リスクファクター: High

基本値: 7.5

ベクトル: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

脆弱性情報

CPE: p-cpe:/a:amazon:linux:postgresql93, p-cpe:/a:amazon:linux:postgresql93-contrib, p-cpe:/a:amazon:linux:postgresql93-debuginfo, p-cpe:/a:amazon:linux:postgresql93-devel, p-cpe:/a:amazon:linux:postgresql93-docs, p-cpe:/a:amazon:linux:postgresql93-libs, p-cpe:/a:amazon:linux:postgresql93-plperl, p-cpe:/a:amazon:linux:postgresql93-plpython26, p-cpe:/a:amazon:linux:postgresql93-plpython27, p-cpe:/a:amazon:linux:postgresql93-pltcl, p-cpe:/a:amazon:linux:postgresql93-server, p-cpe:/a:amazon:linux:postgresql93-test, p-cpe:/a:amazon:linux:postgresql94, p-cpe:/a:amazon:linux:postgresql94-contrib, p-cpe:/a:amazon:linux:postgresql94-debuginfo, p-cpe:/a:amazon:linux:postgresql94-devel, p-cpe:/a:amazon:linux:postgresql94-docs, p-cpe:/a:amazon:linux:postgresql94-libs, p-cpe:/a:amazon:linux:postgresql94-plperl, p-cpe:/a:amazon:linux:postgresql94-plpython26, p-cpe:/a:amazon:linux:postgresql94-plpython27, p-cpe:/a:amazon:linux:postgresql94-server, p-cpe:/a:amazon:linux:postgresql94-test, p-cpe:/a:amazon:linux:postgresql95, p-cpe:/a:amazon:linux:postgresql95-contrib, p-cpe:/a:amazon:linux:postgresql95-debuginfo, p-cpe:/a:amazon:linux:postgresql95-devel, p-cpe:/a:amazon:linux:postgresql95-docs, p-cpe:/a:amazon:linux:postgresql95-libs, p-cpe:/a:amazon:linux:postgresql95-plperl, p-cpe:/a:amazon:linux:postgresql95-plpython26, p-cpe:/a:amazon:linux:postgresql95-plpython27, p-cpe:/a:amazon:linux:postgresql95-server, p-cpe:/a:amazon:linux:postgresql95-static, p-cpe:/a:amazon:linux:postgresql95-test, cpe:/o:amazon:linux

必要な KB アイテム: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

パッチ公開日: 2017/6/6

参照情報

CVE: CVE-2017-7484, CVE-2017-7485, CVE-2017-7486

ALAS: 2017-839