Documentation

Help for MailMigrata and the whole suite

CardDAV discovery and SSRF

This page explains how ContactMigrata discovers a CardDAV address book and which server URLs it refuses to open. CardDAV is the protocol that iCloud, Fastmail, and Nextcloud use to store contacts on their servers. A host that speaks that protocol keeps its address books behind a DAV path, so ContactMigrata must find the right book.

When a user connects an account, ContactMigrata looks up the well-known CardDAV path and then asks for that account's address-book home. If automatic discovery fails, you can paste that book's URL into the job, so a broken server never blocks the migration.

The URL must use https://, because ContactMigrata will not send credentials or contact data over an unencrypted connection. A user should paste the real DAV path, such as /remote.php/dav/addressbooks/users/{user}/ for Nextcloud, and not the Contacts web UI address. A pasted path that points at the web interface fails, because that address serves HTML rather than the DAV collection.

By default ContactMigrata blocks loopback, private LAN, link-local, and unique-local addresses, so a job cannot be pointed at your internal network. An on-premises Nextcloud server on a private network therefore needs the Allow private network setting before any job can reach it.

Carrier-grade NAT (100.64.0.0/10) is not in that block list, so ContactMigrata never treats it as a security boundary. A carrier can place that range behind shared infrastructure, so a user should never rely on it to isolate services.

iCloud still needs an app-specific password, because Apple requires that extra credential for third-party clients that read contacts. Proton is not supported for contacts at all, so ContactMigrata cannot migrate any contact from that provider, even when a URL looks like CardDAV.

See Credentials and contact data for how ContactMigrata stores the credentials that a CardDAV account requires for each job.