Files
craft-launcher/crates/native
dotCooCoo 3c6bb01cb8 Windows: the elevated batch session installs only packages from the launcher's publisher
The batch session's elevated copy took a package's path and checksum from a manifest
in the launcher's downloads folder, which any process of the user can write. The UAC
prompt names the launcher's publisher, so a manifest written by such a process could
get any MSI installed under that prompt.

The elevated copy now checks each held package's Authenticode signature against its
own, as the self-update helper does, and reports no exit code without running Windows
Installer when they differ. The launcher's side sends a package from another publisher
to install by itself under its own prompt, as SolidCraft and ArtCraft Studio do now.

The elevated copy also resolves the package's path before holding it and refuses a
symbolic link, so the path it checks is the one it installs, and it writes its
process id only to a new file.
2026-11-09 06:02:12 -08:00
..