Eclipse AAS4Jにローカルファイルを読み取られる脆弱性
Summary
Eclipse AAS4Jの3.0.1より前の版では、細工されたAAS XMLやAASXパッケージを検証すると、ホスト上のローカルファイルを読み取られたり、外部へ任意のリクエストを送らされたりするおそれがあります。修正版の3.0.1が公開されているため、3.0.1以降へ更新してください。
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.
Eclipse AAS4Jの3.0.1より前の版では、細工されたAAS XMLやAASXパッケージを検証すると、ホスト上のローカルファイルを読み取られたり、外部へ任意のリクエストを送らされたりするおそれがあります。修正版の3.0.1が公開されているため、3.0.1以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Eclipse FoundationEclipse AAS Model for Java (Eclipse AAS4J) |
< 3.0.1→ 3.0.1 |
3.0.1 |
Original description The description as published by the source.
In Eclipse AAS4J before 3.0.1, XmlSchemaValidator.validateSchema() (and AASXValidator.validateSchema(), which calls it) validates untrusted XML with a default JAXP Validator that resolves external DTDs and external entities. An attacker who supplies a crafted AAS XML document or AASX package can read local files from the host, send their contents out-of-band to an attacker-controlled server, and make the validating process send arbitrary outbound requests (SSRF). Validation still returns no errors.
Details:
-
Vulnerable code:
dataformat-xml/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/xml/XmlSchemaValidator.java.schema.newValidator().validate(new StreamSource(...))runs withoutACCESS_EXTERNAL_DTD/ACCESS_EXTERNAL_SCHEMArestrictions and withoutdisallow-doctype-decl. -
Second entry point:
dataformat-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXValidator.java. The AAS XML part of an.aasxpackage is passed unchanged to the vulnerable validator. -
XmlDeserializer(Jackson/Woodstox) is not affected, because DTD support is disabled by default there. -
Present since the initial import of the code base (commit
cc9da52). -
Fix: harden the validator by setting
ACCESS_EXTERNAL_DTDandACCESS_EXTERNAL_SCHEMAto""and rejectingDOCTYPEdeclarations. The bundledAAS.xsddoes not need DTDs, so no functionality is lost.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- web github.com
- web github.com
- web gitlab.eclipse.org
- web nvd.nist.gov
- web github.com