Skip to content

fix(desktop): git status runs in a folder taken from terminal output (OSC 7) #17

Closed

Description

@arifintahu

The status bar runs git with the folder the shell reports via OSC 7. Any program output can forge that, so git can be pointed at an attacker-chosen local or UNC path.

Risk: a UNC path makes Windows start SMB auth (NTLM hash leak); a same-owner repo can run commands through repo config such as core.fsmonitor.

Fix: reject UNC and non-directory paths before spawning git; run git with -c core.fsmonitor=false, --no-optional-locks and GIT_OPTIONAL_LOCKS=0. Add tests.

Blocks 1.0.0.

Activity

  1. added
    bug
    security
    on Oct 28, 2026
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

    bugsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions