Live data from Hacker News

Git client vulnerability announced

github.com

121–130 of 191 posts

Re: Git client vulnerability announced

#121
post #8

Homebrew just updated ( https://github.com/Homebrew/homebrew/pull/35105 ), so Homebrew users should be covered by brew update && brew upgrade git

Ironically, Homebrew uses git to update its package metadata, but presumably you already trust Homebrew to not deliver malicious software (I also don't know if "pull" is vulnerable, or just "clone" and "checkout". Also Homebrew is hosted on Github, which now scans/blocks malicious repos)

Further ironically how many people just did a

    brew update && brew upgrade
Without the git part specifically.

Re: Git client vulnerability announced

#122
post #117
post #15

Earlier quoted context omitted.

And don't copy&paste the above code into the terminal! (Potential vulnerability, though HN is probably safe.)

What is the potential vulnerability?

It's possible to use invisible characters to hide malicious commands during copy-paste[1].

[1]: https://news.ycombinator.com/item?id=5508225

Re: Git client vulnerability announced

#123
post #13

> We have also completed an automated scan of all existing content on github.com to look for malicious content that might have been pushed to our site before this vulnerability was discovered did they find any problems? The post doesn't say...

We found 10 repositories which would have been blocked on push with the new restrictions. None of them were found to be malicious.

Do those 10 repos include private repos? What is GitHub's policy about scanning/inspecting private repos in cases like this?

Re: Git client vulnerability announced

#124
post #109

Earlier quoted context omitted.

As for common filesystems (for some reasonable value of "common"): NTFS, HFS+ and SMB will probably be case insensitive. ZFS may be case insensitive. There are others that would be exotic these days, like AFP. And with FUSE, could be anything.

My quick an dirty (pun intended) experiment concluded that ntfs, while mounted on linux, is case-sensitive. Windows will happily list all files from fs in explorer, whatever case they are, but treat them as one. And this is deep in win32: http://i.imgur.com/sWnCMdq.png (that's cygwin, while on linux, I've put a `small` file in the `test` dir).

You can mount NTFS case sensitive, but you probably don't want case sensitivity if you interop with Windows and, if you don't, why on earth would you use NTFS?

Re: Git client vulnerability announced

#125
post #77

Earlier quoted context omitted.

Gah. Incidents like this makes me frustrated OS X doesn’t have a solid package manager like APT.

Is package management really at issue here? For Apple supplied software, I think it really boils down to the same thing as other distros/OSes: timeliness of security updates. If Apple isn't able to spin out incremental security updates as quickly as other distributions, I'd say that process issue is the real problem. Honestly, there's also something to be said for two-tier package management, ala OS X with Homebrew.…

>Honestly, there's also something to be said for two-tier package management, ala OS X with Homebrew

Agreed, I really like the sound of that. Been aching for some time to have a stable base system like deb stable / slackware and then have my development toolchain specifically but other uses might surface / need bleeding edge.

Re: Git client vulnerability announced

#126

I am running OSX Yosemite. ➜ ~ git --version git version 1.9.3 (Apple Git-50) When I navigate to http://git-scm.com/download/mac it downloads 2.0.1 which was released on 6/29/14. How can I upgrade to 1.9.5?

Apple has updated this in Xcode 6.2 beta 3: http://support.apple.com/en-us/HT204147

Seems like the Command Line Tools (without XCode), which also ships git, have not been updated (yet). Rather annoying.

Re: Git client vulnerability announced

#127

I think here is a good argument for not using case-insensitive filesystems - because every single filename comparison gets affected and it can lead to vulnerabilities like this (I wonder what others are out there...) Case-insensitive initially feels like a good idea to some, but I think it's a good example of "trying to do too much" and often in subtle ways that even the user might not fully understand - the definiti…

> Unicode characters that are visually identical

This was actually a further bug, reported as part of the same CVE - you could also overwrite .git/config by adding any of a number of zero-width Unicode characters that many filesystems ignore when checking for filename equality (but string comparison doesn't, of course).

Re: Git client vulnerability announced

#129
post #109

Earlier quoted context omitted.

My quick an dirty (pun intended) experiment concluded that ntfs, while mounted on linux, is case-sensitive. Windows will happily list all files from fs in explorer, whatever case they are, but treat them as one. And this is deep in win32: http://i.imgur.com/sWnCMdq.png (that's cygwin, while on linux, I've put a `small` file in the `test` dir).

You can mount NTFS case sensitive, but you probably don't want case sensitivity if you interop with Windows and, if you don't, why on earth would you use NTFS?

Yeah. NTFS is case preserving, not case sensitive.
Post reply on HN