mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 08:06:47 +00:00
AppUtils.launchLink was the one shared entry point for opening links externally, but it launched any URL/scheme unguarded, including its own Safari<17 branch which called window.open directly and skipped url_launcher_web's own scheme block and noopener/noreferrer. Route both paths through ExternalLinkPolicy (now also allowing mailto, since launchLink already had legitimate mailto callers) and restore noopener/noreferrer on the Safari branch. The calendar invite's video-conference extension fields (X-OPENPAAS-VIDEOCONFERENCE / X-GOOGLE-CONFERENCE) are attacker-controlled and only checked for non-empty values before reaching the same launch path via the "join" button; filter them through the same allow-list at the source.