Debian DLA-1872-1:python-django 安全性更新

high Nessus Plugin ID 127481

概要

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

說明

在 Django web 開發架構中發現兩個弱點:- CVE-2019-14232:在 django.utils.text.Truncator 中防止可能的拒絕服務。如果 django.utils.text.Truncator 的 chars() 和 word() 方法收到了 html = True 引數,因為規則運算式中存在災難性回溯弱點,在評估某些輸入時速度會極其緩慢。使用 chars() 和 words() 方法來實作 truncatechars_html 及 truncatewords_html 範本篩選器,導致出現安全漏洞。Truncator 使用的規則運算式已簡化,以避免潛在的回溯問題。結果,行尾的標點符號現在有時會包含在截斷的輸出中。- CVE-2019-14233:在 strip_tags() 中防止可能的拒絕服務。因為基礎 HTMLParser 的行為,django.utils.html.strip_tags() 在評估包含巢狀不完整的 HTML 實體大型序列的某些輸入時,速度會極其緩慢。strip_tags() 方法用於實作對應的 striptags 範本篩選器,因此也容易受到攻擊。現在,在處理移除標記 (但不一定是不完整的 HTML 實體) 時,strip_tags() 可以避免對 HTMLParser 進行遞迴呼叫。請記住,請勿對 strip_tags() 的結果對 HTML 是否安全提供任何保證。因此,絕對不要在未先逸出的情況下將 strip_tags() 呼叫的結果標記為安全,例如,使用 django.utils.html.escape()。針對 Debian 8「Jessie」,這些問題已在 python-django 的版本 1.7.11-1+deb8u7 中修正。建議您升級 python-django 套件。您可以在上游公告中找到詳細資訊:https://www.djangoproject.com/weblog/2019/aug/01/security-releases/。感謝 Carlton Gibson et al. 處理這些問題。注意:Tenable Network Security 已直接從 DLA 安全性公告擷取前置描述區塊。Tenable 已盡量在不造成其他問題的前提下,嘗試自動清理並將其格式化。

解決方案

升級受影響的套件。

另請參閱

https://lists.debian.org/debian-lts-announce/2019/08/msg00005.html

https://packages.debian.org/source/jessie/python-django

https://www.djangoproject.com/weblog/2019/aug/01/security-releases/

Plugin 詳細資訊

嚴重性: High

ID: 127481

檔案名稱: debian_DLA-1872.nasl

版本: 1.3

類型: local

代理程式: unix

已發布: 2019/8/12

已更新: 2021/1/11

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

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:python-django, p-cpe:/a:debian:debian_linux:python-django-common, p-cpe:/a:debian:debian_linux:python-django-doc, p-cpe:/a:debian:debian_linux:python3-django, cpe:/o:debian:debian_linux:8.0

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

修補程式發佈日期: 2019/8/6

弱點發布日期: 2019/8/6