Skip to content

herdr-core discovery: untrusted PATH entries and Portal runtime switch #3473

Closed

Description

@devswha

From the merge pass's strict Codex review of #3469 (Windows herdr-core switch, from external #3464), route: team proxy. Both are on main; #3469 newly uses the discovery path from the Windows Settings switch.

  1. HIGH, reproduced with in-memory stand-ins (server/herdr-core/discovery.ts:64): discovery runs herdr-core.exe --version from every PATH directory before the user's usual install location, without checking the directory's owner or permissions. A stand-in in a writable directory earlier on PATH ran and was accepted after printing hc 0.1.17, so a binary another account controls would run as the Ovis user. Fix: probe the usual install location first and skip PATH entries not owned by the user (or by the system) or writable by others.
  2. MEDIUM (server/dispatch.ts:632): a Portal visitor with drive access can switch the runtime (202 and the switch service called); the guard excludes open access but not via === "portal".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions