[OpenNMS/opennms] fb9ba8: NMS-20206: Fix XXE in XML collector (#8782)
OpenNMS Machine User via opennms-cvs <[email protected]>
| Newsgroups | gmane.network.opennms.cvs |
|---|---|
| Message-ID | <OpenNMS/opennms/push/refs/heads/foundation-2024/[email protected]> |
Branch: refs/heads/foundation-2024
Home: https://github.com/OpenNMS/opennms
Commit: fb9ba8bd48f27eedef18b3f0fbf0cfc8a8c22ca4
https://github.com/OpenNMS/opennms/commit/fb9ba8bd48f27eedef18b3f0fbf0cfc8a8c22ca4
Author: Chandra Gorantla <[email protected]>
Date: 2026-08-21 (Fri, 21 Aug 2026)
Changed paths:
M docs/modules/reference/pages/performance-data-collection/collectors/xml.adoc
M protocols/xml/src/main/java/org/opennms/protocols/xml/collector/AbstractXmlCollectionHandler.java
M protocols/xml/src/test/java/org/opennms/protocols/xml/collector/AbstractXmlCollectionHandlerTest.java
Log Message:
-----------
NMS-20206: Fix XXE in XML collector (#8782)
* NMS-20206: Fix XXE in XML collector
Disable external entity/DTD resolution in AbstractXmlCollectionHandler's
DocumentBuilderFactory and TransformerFactory so collected XML cannot read local
files or trigger out-of-band requests. Avoids disallow-doctype-decl to keep
pre-parse-html working. Adds regression tests.
* NMS-20206: Handle review comments
* NMS-20206: Handle some more review comments
Disable external entity/DTD resolution in the DocumentBuilder and, for the
xslt-source-file path, parse the stylesheet and collected source through a
hardened XMLReader (SAXSource) so XXE is blocked even under Xalan. Adds
regression tests.
* NMS-20206: Add some more protections
* NMS-20206: Update docs
* NMS-20206: Add ErrorListener
Commit: 2e76241023e776c97ce55792d9a4ef3af725b6ba
https://github.com/OpenNMS/opennms/commit/2e76241023e776c97ce55792d9a4ef3af725b6ba
Author: CI/CD System <[email protected]>
Date: 2026-08-21 (Fri, 21 Aug 2026)
Changed paths:
M docs/modules/reference/pages/performance-data-collection/collectors/xml.adoc
M protocols/xml/src/main/java/org/opennms/protocols/xml/collector/AbstractXmlCollectionHandler.java
M protocols/xml/src/test/java/org/opennms/protocols/xml/collector/AbstractXmlCollectionHandlerTest.java
Log Message:
-----------
Merge remote-tracking branch 'origin/foundation-2023' into foundation-2024
Compare: https://github.com/OpenNMS/opennms/compare/51c9c1102324...2e76241023e7
To unsubscribe from these emails, change your notification settings at https://github.com/OpenNMS/opennms/settings/notifications
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-cvs mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs