Webmail
Bulwark Webmail: DNS-rebinding SSRF in public iCalendar fetch endpoint
Bulwark Webmail is a self-hosted webmail client for Stalwart Mail Server. Prior to 1.9.2, the unauthenticated POST /api/fetch-ical endpoint validates a caller-supplied hostname with one DNS lookup and then passes the URL to fetch, which performs a separate lookup for the socket connection. An attacker controlling authoritative DNS can return a public address during validation and then rebind the hostname to a loopback, private, link-local, or cloud metadata address for the connection, causing the server to return up to 10 MB of an internal HTTP or HTTPS response. The same check-then-fetch pattern also existed in authenticated JMAP login and TOTP token-exchange flows. This issue is fixed in version 1.9.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.9.2
Fixed in 1.9.2
Mitigation
Upgrade webmail to 1.9.2 or later.
References
- Vendor advisory github.com/bulwarkmail/webmail/security/adviso…
- Patch github.com/bulwarkmail/webmail/commit/3288589e…
- Release notes github.com/bulwarkmail/webmail/releases/tag/1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.