Kitodo.Production 認証済みユーザーの XML アップロードで外部実体参照によりファイルを読み取られる
Summary
Kitodo.Production には、EAD/XML ファイルを解析する際に外部実体参照(XXE)を処理してしまう問題があります。認証済みのユーザーが細工したファイルをアップロードすると、サーバー上のファイルを読み取られたり、サーバーから外部へリクエストを送られたりするおそれがあります。影響を受けるのはバージョン 3.9.2 より前の版で、3.9.2 で修正されていますので、3.9.2 以降へアップデートしてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Kitodo.Production には、EAD/XML ファイルを解析する際に外部実体参照(XXE)を処理してしまう問題があります。認証済みのユーザーが細工したファイルをアップロードすると、サーバー上のファイルを読み取られたり、サーバーから外部へリクエストを送られたりするおそれがあります。影響を受けるのはバージョン 3.9.2 より前の版で、3.9.2 で修正されていますので、3.9.2 以降へアップデートしてください。
Original description The description as published by the source.
Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite. Prior to version 3.9.2, org.kitodo.production.helper.XMLUtils exposes several XML parsing helpers that construct a JAXP parser with the default, non-secure configuration. The methods parseXMLString(String), getNumberOfEADElements(String, String) and checkIfXmlIsWellFormed(String) build a DocumentBuilderFactory / XMLInputFactory / SAXParserFactory via newInstance() and parse the attacker-supplied string without disabling DOCTYPE declarations or external entity resolution. These helpers sit directly on the EAD-import path: an authenticated user who uploads an EAD/XML file through the "Create process" file-upload dialog has the uploaded bytes parsed by these methods. A crafted document with an external entity therefore yields XML External Entity (XXE) injection: local file disclosure and outbound SSRF requests from the server. This issue has been patched in version 3.9.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com