Skip to content

Change symlink verification to avoid redirection guard policy#6239

Merged
JohnMcPMS merged 2 commits into
microsoft:masterfrom
JohnMcPMS:symlink-sec
May 21, 2026
Merged

Change symlink verification to avoid redirection guard policy#6239
JohnMcPMS merged 2 commits into
microsoft:masterfrom
JohnMcPMS:symlink-sec

Conversation

@JohnMcPMS
Copy link
Copy Markdown
Member

@JohnMcPMS JohnMcPMS commented May 20, 2026

📖 Description

Rather than comparing the symlink and desired target through weakly_canonical, this change checks that the symlink is pointing to the target via string comparison. This avoids "resolving" the symlink and the redirection guard policy.

🔗 References

Fixes #6211

🔍 Validation

Enabled the redirection guard for the unit test process; test started failing as expected.
Product fix resolved test failure; added additional validations to test.

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner May 20, 2026 21:35
florelis
florelis previously approved these changes May 20, 2026
Comment thread src/AppInstallerSharedLib/Filesystem.cpp Outdated
@JohnMcPMS JohnMcPMS merged commit 2515a35 into microsoft:master May 21, 2026
9 checks passed
@JohnMcPMS JohnMcPMS deleted the symlink-sec branch May 21, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Portable package upgrade fails under RedirectionGuard when canonicalizing WinGet Links symlink

3 participants