This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
161–170 of 254 posts
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#162This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#163This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
How many eyes have actually looked at this code?
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#164This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
And with closed source, who knows?!
>C and C++ should not be used for new work.
It's funny how articles on C/C++ seem to shoot to the front page here...
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#165Earlier quoted context omitted.
I always laugh when people give you a URL to C code to test for remote code execution...
Why? Reproducers are standard fare and it's not like the code in this case is obfuscated. Are magic code goblins going to come and invoke Ken Thompson's untrustable computing and make your computer install windows and join a botnet or something?
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#166Earlier quoted context omitted.
Uh, how often do code execution vulnerabilities show up in non-C programs compared to how often they show up in C programs?
All the time: SQLi, XSS, arbitrary file upload, ...
And even if these problems were as widespread, eliminating a huge class of errors is a big step up. Nearly every serious vulnerability in Microsoft's code for the past years is from memory unsafeness.
Hell, why bother with malaria or smallpox vaccines, since people just die from something else anyways.
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#167This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#168Here's a quick writeup I made with all of the information I found in this thread. Feedback welcome: http://product.reverb.com/2015/01/28/patching-cve-2015-0235-...
I've got some feedback though:
The bug has been fixed (May 21, 2013, between the releases of glibc-2.17 and glibc-2.18).
So your statement "This bug effects all versions of libc6 greater than 2.2+ (which was released Nov, 10, 2000) so you’ll be really lucky if you’re not vulnerable." is wrong.
For example, Ubuntu 14.04 uses glibc-2.19-1 which isn't affected.
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#169Earlier quoted context omitted.
Why? Reproducers are standard fare and it's not like the code in this case is obfuscated. Are magic code goblins going to come and invoke Ken Thompson's untrustable computing and make your computer install windows and join a botnet or something?
You're piping random executables from the internet without even looking at them to see what they do if you run that command.
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#170This is embarrassing. We now know that the line "with many eyes, all bugs are shallow" is just wrong. What we do know now is that the open source process does not converge to a no-bugs state. It's time to start phasing out C/C++. Languages which don't know how big their arrays are have to go. If it can run efficiently in a garbage-collected environment, it should be in Go or some scripting language. If it can't use G…
I hate these "just use another language! All problems solved" kind of posts. Mainly because it's shit logic.
Now, it is not always practical to use safe languages for everything (specially low level libraries such as say, libc...), and that 'huge category' of problems is not even remotely close to being all the security problems. But using tools that prioritize not shooting yourself in the foot by default is not bad consideration to make, all other things being similar.