Debian DLA-3590-1:python-reportlab - LTS 安全性更新

critical Nessus Plugin ID 182381

概要

遠端 Debian 主機上缺少一個或多個安全性更新。

說明

遠端 Debian 10 主機上安裝的多個套件受到 dla-3590 公告中提及的多個弱點影響。

- ReportLab 3.5.26 之前版本允許遠端程式碼執行,這是因為 colors.py 中的 toColor(eval(arg)) 所致,含有「<span color=」且後面緊接著任意 Python 程式碼的特製 XML 文件即為一例。
(CVE-2019-17626)

- ReportLab 3.5.31 之前版本中的 paraparser 允許遠端程式碼執行,因為 paraparser.py 中的 start_unichar 會評估特製的 XML 文件中 unichar 元素中是否存在不受信任的使用者輸入,其中「<unichar code=」後面緊接著任意 Python 程式碼,這與 CVE-2019-17626 問題類似。(CVE-2019-19450)

- 所有版本的 reportlab 套件都容易受到透過 img 標籤造成的伺服器端要求偽造 (SSRF) 影響。為了降低風險,請使用 trustedSchemes 和 trustedHosts (請參閱 Reportlab 文件 )。Karan Bamal 重現的步驟如下所示:1. 下載並安裝最新的 reportlab 套件 2. 前往示範 -> odyssey -> dodyssey 3. 在需要轉換為 pdf 的文字檔案 odyssey.txt 中插入 <img src=http://127.0.0.1:5000 valign=top/> 4. 建立 nc 接聽程式 nc -lp 5000 5. 執行 python3 dodyssey.py 6. nc 上會顯示提示,顯示我們已成功處理傳送伺服器端要求 7.
dodyssey.py 會顯示錯誤,因為 url 上沒有 img 檔案,但我們可以執行 SSRF (CVE-2020-28463)

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

解決方案

升級 python-reportlab 套件。

針對 Debian 10 Buster,已在 3.5.13-1+deb10u2 版本中修正這些問題。

另請參閱

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

https://www.debian.org/lts/security/2023/dla-3590

https://security-tracker.debian.org/tracker/CVE-2019-17626

https://security-tracker.debian.org/tracker/CVE-2019-19450

https://security-tracker.debian.org/tracker/CVE-2020-28463

https://packages.debian.org/source/buster/python-reportlab

Plugin 詳細資訊

嚴重性: Critical

ID: 182381

檔案名稱: debian_DLA-3590.nasl

版本: 1.0

類型: local

代理程式: unix

已發布: 2023/9/30

已更新: 2023/9/30

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: High

基本分數: 7.5

時間分數: 5.9

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

CVSS 評分資料來源: CVE-2019-17626

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 8.8

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

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

CVSS 評分資料來源: CVE-2019-19450

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:python-reportlab-doc, p-cpe:/a:debian:debian_linux:python3-renderpm, cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:python-reportlab, p-cpe:/a:debian:debian_linux:python-reportlab-accel, p-cpe:/a:debian:debian_linux:python-renderpm-dbg, p-cpe:/a:debian:debian_linux:python-reportlab-accel-dbg, p-cpe:/a:debian:debian_linux:python3-reportlab, p-cpe:/a:debian:debian_linux:python3-reportlab-accel-dbg, p-cpe:/a:debian:debian_linux:python-renderpm, p-cpe:/a:debian:debian_linux:python3-renderpm-dbg, p-cpe:/a:debian:debian_linux:python3-reportlab-accel

必要的 KB 項目: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2023/9/29

弱點發布日期: 2019/10/16

參考資訊

CVE: CVE-2019-17626, CVE-2019-19450, CVE-2020-28463