changedetection.io SSRF protection bypass via CGNAT addresses
Description
Affected product
The html_requests watch-fetch backend in changedetection.io. The affected SSRF gate applies when ALLOW_IANA_RESTRICTED_ADDRESSES is unset or set to false.
Summary
The SSRF remediation released in 0.54.1 is incomplete: its IP-address predicate does not reject RFC 6598 Carrier-Grade NAT (CGNAT) space, 100.64.0.0/10.
This is an incomplete boundary case of the remediation for CVE-2026-27696. A watch targeting a CGNAT address reachable from the changedetection.io server can pass the fetch-time guard and cause a server-side HTTP request.
Technical details
changedetectionio/validate_url.py resolves each hostname in is_private_hostname() and blocks only these classifications:
if ip.is_private or ip.is_loopback or ip.is_link_local or ip.is_reserved:
return TrueCPython 3.11.15 documents that addresses in 100.64.0.0/10 have both is_private and is_global set to False. The predicate does not reject addresses merely because they are not globally reachable.
changedetectionio/content_fetchers/requests.py calls is_url_private_or_parser_confused() before the initial request and again for every manually followed redirect. That helper delegates hostname validation to is_private_hostname(), so both direct CGNAT URLs and redirect targets in this range bypass the same incomplete classification.
Preconditions
- The attacker can create a watch through
POST /form/add/quickwatch. - If an application password or
SALTED_PASSis configured, the attacker must be authenticated; otherwise this route permits the request without login. - The watch uses the
html_requestsfetch backend. - A target in
100.64.0.0/10is reachable from the changedetection.io server.
Verification
Use an isolated, authorized test environment with a harmless HTTP server at <cgnat-test-host> in 100.64.0.0/10.
Control request:
POST /form/add/quickwatch
Content-Type: application/x-www-form-urlencoded
url=http%3A%2F%2F192.168.1.10%2F&tags=With ALLOW_IANA_RESTRICTED_ADDRESSES=false, the fetch worker should reject this target before connecting.
Bypass request:
POST /form/add/quickwatch
Content-Type: application/x-www-form-urlencoded
url=http%3A%2F%2F<cgnat-test-host>%2F&tags=After the watch is queued, the test server receives a request from changedetection.io. This demonstrates that the CGNAT address was not rejected by the fetch-time SSRF gate.
Impact
A user meeting the preconditions can cause changedetection.io to send HTTP requests to reachable services in 100.64.0.0/10. The demonstrated impact is SSRF to CGNAT-addressed services; any additional disclosure or service-specific effect depends on the target service and watch-result handling.
Affected versions
The incomplete remediation begins in 0.54.1, which released the original SSRF fix. The same predicate is source-confirmed in 0.55.8, the latest release, and remains unchanged on master. No released fix for this boundary case is available.
Remediation
Update is_private_hostname() to reject non-globally-reachable addresses, or explicitly reject 100.64.0.0/10, while retaining the documented override behavior for deployments intentionally monitoring restricted networks.
Add regression coverage for literal CGNAT addresses, IPv4-mapped CGNAT IPv6 addresses, initial fetches, and redirect targets. The existing security tests cover RFC1918, loopback, link-local, and IPv6 private addresses, but do not cover CGNAT.
Evidence
- The original remediation was introduced by commit
fe7aa38c651d73fe5f41ce09855fa8f97193747band released as 0.54.1. - The 0.54.1 release notes identify the original SSRF issue as CVE-2026-27696.
changedetectionio/validate_url.pyandchangedetectionio/content_fetchers/requests.pywere source-verified at 0.54.1 and 0.55.8; neither file changed between 0.55.8 andmaster.- CPython v3.11.15
Lib/ipaddress.pydocuments the exceptional100.64.0.0/10classification described above.