You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle the new WSL filesystem path for the last Windows Build #17640
Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Securitysecurity related areas such as JEA
# Execute a script inside the home Ubuntu-20.04
pwsh.exe -file '\\wsl$\Ubuntu-20.04\home\flavien\test.ps1'
pwsh.exe -file '\\wsl.localhost\Ubuntu-20.04\home\flavien\test.ps1'
@WG-Security
Security working group feels the original change #13120 should be updated to support the new wsl path format along with the old. We feel the old format \\wsl$ is potentially problematic but that we need to continue providing support for down level versions. We understand that this is a defense-in-depth feature and we don't want to introduce a breaking change.
@iSazonov \\wsl$ is an uri and an Unc but written at the first line of the method, maybe because ReadFromZoneIdentifierDataStream (WSL is more trust than the download folder). I can update #13120 or rewrite the whole method, but that not the same job.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Securitysecurity related areas such as JEA
Activity
iSazonov commentedon Jul 7, 2022
The fix should be in
PowerShell/src/System.Management.Automation/utils/ClrFacade.cs
Lines 236 to 237 in 8cc3984
because Host is
wsl.localhostRequest Security group to approve.
PaulHigin commentedon Jul 18, 2022
@WG-Security
Security working group feels the original change #13120 should be updated to support the new wsl path format along with the old. We feel the old format
\\wsl$is potentially problematic but that we need to continue providing support for down level versions. We understand that this is a defense-in-depth feature and we don't want to introduce a breaking change.fMichaleczek commentedon Jul 19, 2022
@iSazonov \\wsl$ is an uri and an Unc but written at the first line of the method, maybe because ReadFromZoneIdentifierDataStream (WSL is more trust than the download folder). I can update #13120 or rewrite the whole method, but that not the same job.
* WslRootPath need contain an additional slash to deny \\wsl.localhost*
iSazonov commentedon Jul 19, 2022
Flavien MICHALECZEK (@fMichaleczek) Feel free to pull PR!
One more question I have is should we address all URLs with
.localhostsuffix and returnSecurityZone.MyComputer?microsoft-github-policy-service commentedon Nov 15, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 22, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.