Debian DSA-2842-1:libspring-java - 拒絕服務

medium Nessus Plugin ID 71933

概要

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

說明

Alvaro Munoz 在 Spring Framework 中發現一個 XML 外部實體 (XXE) 插入,其可用來對其他網站執行 CSRF 與 DoS 攻擊。

當使用 JAXB 取消封送處理器時,Spring OXM 包裝函式並未暴露停用實體解析的任何內容。有四個可能的來源實作傳遞至取消封送處理器:

- DOMSource
- StAXSource

- SAXSource

- StreamSource

針對 DOMSource,XML 已由使用者程式碼剖析,而該程式碼負責防範 XXE。


針對 StAXSource,XMLStreamReader 已由使用者程式碼建立,而該程式碼負責防範 XXE。

針對 SAXSource 與 StreamSource 執行個體,Spring 依預設處理外部實體,進而建立此弱點。

此問題已透過預設停用外部實體處理,以及當從信任的來源處理 XML 時,新增針對需要使用此功能的使用者予以啟用的選項來解決。

另外據發現,Spring MVC 處理使用者提供之含 JAXB 的 XML 時,搭配了 StAX XMLInputFactory,而未停用外部實體解析。在此情況下,已停用外部實體解析。

解決方案

升級 libspring-java 套件。

針對穩定的發行版本 (wheezy),此問題已在 3.0.6.RELEASE-6+deb7u1 版本中修正。

另請參閱

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720902

https://packages.debian.org/source/wheezy/libspring-java

https://www.debian.org/security/2014/dsa-2842

Plugin 詳細資訊

嚴重性: Medium

ID: 71933

檔案名稱: debian_DSA-2842.nasl

版本: 1.9

類型: local

代理程式: unix

已發布: 2014/1/14

已更新: 2021/1/11

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Medium

基本分數: 6.8

時間分數: 5

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

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:libspring-java, cpe:/o:debian:debian_linux:7.0

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

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2014/1/13

參考資訊

CVE: CVE-2013-4152

BID: 61951

DSA: 2842