Skip to content

Pwrshplugin Config File Paths Should be Validated Before Use #5286

Closed

Description

The paths to CoreCLR and PSHOME read by pwrshplugin should be validated before use to protect against bad input.

A potential API to use is PathIsDirectory.

It is part of api-ms-win-shlwapi-ie-l1-1-0.dll, but that API set is not present on Windows 7 (shlwapi.dll is though).

Activity

  1. added
    WG-Remoting
    on Oct 31, 2017
  2. added this to the milestone on Oct 31, 2017
  3. SteveL-MSFT commented on Dec 7, 2017

    @SteveL-MSFT
    Member

    PathIsDirectory relies on shlwapi which is present on Win7, but not on win-arm builds. I think using CreateFile() is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

WG-Remoting

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions