OpenPDF:iText 2.1.7 XXE漏洞

问题描述 投票:1回答:1

当前,我使用的是Birt Report运行时版本4.4.2,内部使用的是iText版本-2.1.7我将Birt Report .rptdesign文件作为模板,并使用Birt Report运行时引擎动态创建/呈现pdf,其中数据来自数据库,而pdf将在网络浏览器中呈现。

根据下面的链接,iText 2.1.7版本中存在XXE漏洞

https://www.compass-security.com/fileadmin/Datein/Research/Advisories/CSNC-2017-017_itext_xml_external_entity_attack.txt

为了解决上述问题,我打算用OpenPDF jar替换iText 2.1.7 jar版本。但是看起来OpenPDF也使用javax.xml.parsers.DocumentBuilderFactory类,这又会给XXE漏洞

[任何人都可以在openPDF源代码中修复此漏洞并发布新版本吗?

以下是有用的链接,其中Apache PDF框已修复XXE漏洞

https://github.com/apache/pdfbox/commit/be36ef01842885b556a4e7b40b5e2e8e7b1d2816#diff-7865264c984db3c9a6ac8471b0a4d414

java pdf reporting birt openpdf
1个回答
0
投票

此问题已在OpenPDF 1.0.5中修复。因此,我建议使用iText 2.1.7的人升级到最新版本的OpenPDF。

https://github.com/LibrePDF/OpenPDF/releases/tag/1.0.5

© www.soinside.com 2019 - 2024. All rights reserved.