Skip to content

fix(updater): extracting the update zip keeps symlinks and file permissions (#1765) - #1783

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
fix/updater-zip-symlinks-permissions
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
fix/updater-zip-symlinks-permissions

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1765.

extractZipSecurely now:

  • creates a Link for symlink entries and rejects absolute targets and targets that resolve outside the destination;
  • applies the entry's unix permission bits to extracted files (POSIX only).

The size, ratio and traversal checks are unchanged. Tests: a symlink and an executable entry round-trip; an outside and an absolute symlink target are rejected. Not run locally, CI will. The macOS codesign effect still needs a check on a Mac.

@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability core Core library logic and services P1 High priority / Core capability labels Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 79ea3ba into dev Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Core library logic and services P1 High priority / Core capability stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant