Hacker News new | ask | show | jobs
by lyu07282 16 days ago
Could file a CVE with Microsoft then, cause thats kinda what cmd.exe is doing:

    > git clone git://evil evil
    > cd evil\
    > git status
The last line would execute git.exe from the cloned repo, wouldn't it?
1 comments

No, `git` uses the binary in path, to use the repo file it should be `./git.exe`
On Linux.

Look for `NoDefaultCurrentDirectoryInExePath` if you want to learn about Windows.