RHEL 6:php53 和 php (RHSA-2011:1423)

critical Nessus Plugin ID 56699

概要

遠端 Red Hat 主機缺少一個或多個 php53 / php 安全性更新。

說明

遠端 Redhat Enterprise Linux 6 主機上安裝的套件受到 RHSA-2011:1423 公告中提及的多個弱點影響。

PHP 是一種內嵌 HTML 的指令碼語言,通常用於 Apache HTTP Server。

當使用 Blowfish 雜湊時,在 PHP crypt() 函式處理密碼 8 位字元的方式中發現一個正負號問題。最多三個字元緊跟在非 ASCII 字元 (包含高位元集的字元) 之前對於雜湊結果沒有任何影響,進而縮短有效密碼長度。這點使攻擊者的暴力密碼破解猜測速度更快,因為有數個不同的密碼都已雜湊成相同值。(CVE-2011-2483)

注意:因為 CVE-2011-2483 修正的關係,在安裝此更新後,有些使用者可能無法登入使用 PHP crypt() 函式來與 Blowfish 雜湊密碼的 PHP 應用程式。如需詳細資訊,請參閱〈參照〉中所連結的上游 CRYPT_BLOWFISH 安全性修正詳細資料文件。

在 PHP exif 延伸模組中,發現了導致緩衝區過度讀取的未執行徹底輸入驗證瑕疵。當 PHP 指令碼嘗試從影像檔擷取可交換影像檔案格式 (Exif) 詮釋資料時,特製的影像檔可造成 PHP 解譯器損毀。
(CVE-2011-0708)

在 PHP Calendar 延伸模組中發現一個整數溢位瑕疵。能夠以大值進行 PHP 指令碼呼叫 SdnToJulian() 的遠端攻擊者可造成 PHP 解譯器損毀。 (CVE-2011-1466)

在 PHP OpenSSL 延伸模組中發現多個記憶體洩漏瑕疵。能夠使 PHP 指令碼重複使用 openssl_encrypt() 或 openssl_decrypt() 的遠端攻擊者可造成 PHP 解譯器使用過量記憶體。 (CVE-2011-1468)

在 PHP substr_replace() 函式中發現一個釋放後使用瑕疵。如果 PHP 指令碼使用相同的變數作為多個函式引數,遠端攻擊者可能會利用此弱點造成 PHP 解譯器損毀,或可能執行任意程式碼。 (CVE-2011-1148)

PHP Streams 元件中存在的一個錯誤在 FTP 包裝函式透過 HTTP Proxy 連線時導致 PHP 解譯器當機。如果 PHP 指令碼接受未受信任的 URL 進行連線,遠端攻擊者可能觸發此問題。 (CVE-2011-1469)

在 PHP zip 延伸模組中發現一個整數正負號問題。攻擊者可利用特製的 ZIP 封存,造成 PHP 解譯器使用過量 CPU 時間,直到達到指令碼執行時間限制為止。 (CVE-2011-1471)

在 PHP 通訊端延伸模組處理 AF_UNIX 通訊端長位址的方式中發現一個堆疊型緩衝區溢位瑕疵。能夠使 PHP 指令碼連線至長 AF_UNIX 通訊端位址的攻擊者可利用此瑕疵造成 PHP 解譯器損毀。 (CVE-2011-1938)

在 PHP 中發現一個差一瑕疵。如果攻擊者上傳具有特製檔案名稱的檔案,可導致 PHP 指令碼嘗試將檔案寫入 root (/) 目錄。根據預設,PHP 會以 apache 使用者身分執行,防止其寫入 root 目錄。 (CVE-2011-2202)

所有 php53 及 php 使用者皆應升級至這些更新版套件,其中包含可解決這些問題的反向移植修補程式。安裝更新版套件後,必須先重新啟動 httpd 程序,更新才會生效。

Tenable 已直接從 Red Hat Enterprise Linux 安全公告擷取前置描述區塊。

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

解決方案

根據 RHSA-2011:1423中的指南更新 RHEL php53 / php 套件。

另請參閱

http://www.nessus.org/u?f4a59215

https://access.redhat.com/security/updates/classification/#moderate

https://bugzilla.redhat.com/show_bug.cgi?id=680972

https://bugzilla.redhat.com/show_bug.cgi?id=688958

https://bugzilla.redhat.com/show_bug.cgi?id=689386

https://bugzilla.redhat.com/show_bug.cgi?id=690899

https://bugzilla.redhat.com/show_bug.cgi?id=690905

https://bugzilla.redhat.com/show_bug.cgi?id=690915

https://bugzilla.redhat.com/show_bug.cgi?id=709067

https://bugzilla.redhat.com/show_bug.cgi?id=713194

https://bugzilla.redhat.com/show_bug.cgi?id=715025

http://www.php.net/security/crypt_blowfish.php

https://access.redhat.com/errata/RHSA-2011:1423

Plugin 詳細資訊

嚴重性: Critical

ID: 56699

檔案名稱: redhat-RHSA-2011-1423.nasl

版本: 1.22

類型: local

代理程式: unix

已發布: 2011/11/3

已更新: 2025/4/14

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

風險資訊

VPR

風險因素: Medium

分數: 6.5

Vendor

Vendor Severity: Moderate

CVSS v2

風險因素: High

基本分數: 7.5

時間性分數: 5.9

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

CVSS 評分資料來源: CVE-2011-1938

CVSS v3

風險因素: Critical

基本分數: 10

時間性分數: 9

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

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

CVSS 評分資料來源: CVE-2011-2483

弱點資訊

CPE: p-cpe:/a:redhat:enterprise_linux:php-pspell, p-cpe:/a:redhat:enterprise_linux:php53-ldap, p-cpe:/a:redhat:enterprise_linux:php-zts, p-cpe:/a:redhat:enterprise_linux:php53-pspell, p-cpe:/a:redhat:enterprise_linux:php53-cli, cpe:/o:redhat:enterprise_linux:6, p-cpe:/a:redhat:enterprise_linux:php-embedded, p-cpe:/a:redhat:enterprise_linux:php-mysql, p-cpe:/a:redhat:enterprise_linux:php53-soap, p-cpe:/a:redhat:enterprise_linux:php53-common, p-cpe:/a:redhat:enterprise_linux:php53-mbstring, p-cpe:/a:redhat:enterprise_linux:php-xml, p-cpe:/a:redhat:enterprise_linux:php-bcmath, p-cpe:/a:redhat:enterprise_linux:php-cli, p-cpe:/a:redhat:enterprise_linux:php-devel, p-cpe:/a:redhat:enterprise_linux:php53-odbc, p-cpe:/a:redhat:enterprise_linux:php-enchant, p-cpe:/a:redhat:enterprise_linux:php53-pgsql, p-cpe:/a:redhat:enterprise_linux:php53-devel, p-cpe:/a:redhat:enterprise_linux:php, p-cpe:/a:redhat:enterprise_linux:php53-bcmath, p-cpe:/a:redhat:enterprise_linux:php-tidy, p-cpe:/a:redhat:enterprise_linux:php-recode, cpe:/o:redhat:enterprise_linux:5, p-cpe:/a:redhat:enterprise_linux:php-gd, p-cpe:/a:redhat:enterprise_linux:php-snmp, p-cpe:/a:redhat:enterprise_linux:php-ldap, p-cpe:/a:redhat:enterprise_linux:php53-snmp, p-cpe:/a:redhat:enterprise_linux:php53-mysql, p-cpe:/a:redhat:enterprise_linux:php53-xml, p-cpe:/a:redhat:enterprise_linux:php-imap, p-cpe:/a:redhat:enterprise_linux:php-odbc, p-cpe:/a:redhat:enterprise_linux:php-xmlrpc, p-cpe:/a:redhat:enterprise_linux:php53-intl, p-cpe:/a:redhat:enterprise_linux:php53-pdo, p-cpe:/a:redhat:enterprise_linux:php-mbstring, p-cpe:/a:redhat:enterprise_linux:php53-dba, p-cpe:/a:redhat:enterprise_linux:php53-imap, p-cpe:/a:redhat:enterprise_linux:php-common, p-cpe:/a:redhat:enterprise_linux:php-intl, p-cpe:/a:redhat:enterprise_linux:php-soap, p-cpe:/a:redhat:enterprise_linux:php53-gd, p-cpe:/a:redhat:enterprise_linux:php53-xmlrpc, p-cpe:/a:redhat:enterprise_linux:php53-process, p-cpe:/a:redhat:enterprise_linux:php-pdo, p-cpe:/a:redhat:enterprise_linux:php-dba, p-cpe:/a:redhat:enterprise_linux:php53, p-cpe:/a:redhat:enterprise_linux:php-pgsql, p-cpe:/a:redhat:enterprise_linux:php-process

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2011/11/2

弱點發布日期: 2011/3/18

參考資訊

CVE: CVE-2011-0708, CVE-2011-1148, CVE-2011-1466, CVE-2011-1468, CVE-2011-1469, CVE-2011-1471, CVE-2011-1938, CVE-2011-2202, CVE-2011-2483

BID: 46365, 46843, 46967, 46970, 46975, 46977, 47950, 48259, 49241

CWE: 121, 401, 416

RHSA: 2011:1423