Skip to content

The StoragePickers API can access special folders without permission checksΒ #5951

@Goo-aw233

Description

@Goo-aw233

Describe the bug

The StoragePickers API can bypass permissions to access special folders
For example, it can directly access the root directory of the C:\Program Files\WindowsApps folder

Steps to reproduce the bug

Use the StoragePickers API to open a folder for selecting file/folder paths

Expected behavior

Access to folders requiring special permissions should be restricted like other APIs. For example, when VS Code attempts to access C:\Program Files\WindowsApps, it will be denied access even if UAC permission is requested

Screenshots

Image

Image

NuGet package version

No response

Packaging type

Packaged (MSIX)/Unpackaged

Windows version

Insider Build (xxxxx)

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions