changedetection.io_XXE_01 Vulnerability Report: We discovered a XXE vulnerability in the changedetection.io project
While analyzing the code logic, it was determined that an area may lead to unintended behavior under specific conditions. With the project's security in mind, see the analysis results to discern whether this may indicate a potential security risk.
xpath_filter() switches to XML mode for XML/RSS content and creates etree.XMLParser(strip_cdata=False) without explicitly disabling external entity resolution, external DTD loading, or network-backed entity lookup. The helper then parses untrusted XML bytes directly with etree.fromstring(...).
Source-to-Sink Chain
Untrusted XML/RSS response content is fetched from monitored URLs.
Stream detection marks the content as XML/RSS and the include-filter path invokes xpath_filter(..., is_xml=True).
xpath_filter() builds the default XML parser and calls etree.fromstring(...) at changedetectionio/html_tools.py:287.
External entity declarations in attacker XML can be expanded by parser-default behavior in affected runtime combinations.
Exploitation Preconditions
Attacker controls the watched XML/RSS response body.
The watch uses an XPath include filter that triggers XML helper parsing.