Magnitude of glibc Vulnerability Coming To Light (threatpost.com)
msm1267 writes: The glibc vulnerability disclosed this week has some experts on edge because of how DNS can leveraged in exploits. Dan Kaminsky said that while man-in-the-middle attacks are one vector, it would appear that it's also possible to exploit the bug and attack most Linux servers via DNS caching-only servers. 'This would be substantially worse if it went through the caching ecosystem; 99 percent of attack vectors go through that system,' Kaminsky said. Glibc, or the GNU C library, is used by most flavors of Linux and also a number of popular web services and frameworks, giving attacks potentially massive horizontal scale. The major Linux distros have patched and pushed updates to servers; source code is also available for homegrown Linux builds.
It's a shame there isn't a systems programming language that prevents buffer overflows from existing in the first place.
For being glib about it. (ba dump)
The CVSS score is a medium of 6.1 for the CVE. So this isn't as bad as Heartbleed since it requires more environmental factors to be a successful exploit.
Most likely organizations have much worse and easier exploitable vulnerabilities than this.
On a scale from 1 to heartbleed, exactly how bad is this bug?
We all know about Rust. We know its syntax is a step backward from C, C++, Java, C#, and even PHP. We know its resource management approach is confusing, even when you understand how it works and how to use it. We know there's only one implementation of it, and according to its issue tracker it's really buggy (which is even funnier because the Rust compiler and standard libraries are implemented in Rust and Rust is supposed to have been designed to make bugs less likely!). We know it took them fucking forever get Rust 1.0 out the door, and even then it wasn't stable. We know that it hasn't lived up to the hype since then. We know their leadership includes prominent former Ruby on Railers who jumped ship when it became obvious that RoR was no longer trendy. We know the Rust standard library is quite shitty and lacking. We know that C++ has continued to evolve and can offer pretty much everything Rust offers. We know that the Rust community is quite totalitarian, with an intolerant code of conduct and a mod team to take out anyone they don't like. We question Mozilla's future, seeing as how Firefox's market share is dropping like a rock thanks to Mozilla treating its users so badly and subjecting them to so many unwanted changes in Firefox, and Firefox is really Mozilla's only product that sees use these days. We know that the Servo project, which is written in Rust, is going nowhere. We ignore Rust because it just isn't a viable option!
A vulnerability that involves some aspect of DNS, prepare for APK spam, sadly no hosts files can block his advertisements for his software despite his claims it can block advertising.
Change is certain; progress is not obligatory.
Still on DVL (https://en.wikipedia.org/wiki/Damn_Vulnerable_Linux), so I must be secure from this...
Once again proving that the open sores model of software development not only results in lower pay for up and coming developers (and often a requirement for NO pay when you factor in how you have to have a big github contribution history to even be considered for any new job these days), it also results in WORSE software. Every single fucking week we discover yet another massive vulnerability in core internet software caused by amateur software developers posing as professionals. This is why I am increasingly advocating for an end to open sores culture in software development. I regularly give talks at my university arguing why open sores has been nothing but damaging to our profession and find it encouraging to see how every time I do so more and more people attend. Open sores has been an absolute disaster for programming and it is well past time we put an end to its sacred cow status.
A patch to a .so file is a great fix for most things... But, if you build your own statically linked executables please "make clean", "make"
Just a friendly public service reminder from the "Grey, but still alive"
iptables -t raw -A PREROUTING -p udp --sport 53 -m length --length 28:2000 -j DROP
The above line will block any attack based on this vulnerability.
It may impact some unusual but legitimate queries, though. Normal DNS queries usually have small enough responses to fit in this range.
If the above line is on a Linux machine that is performing as a trusted caching DNS server, it will also protect the clients from the attack.
You might be able to get a few more bytes into the threshold (because there are headers in the DNS protocol) and I am not exactly sure where the overflow happens (raw packet, UDP payload, DNS payload, etc.). As a bonus, this will also drop unreasonably small packets.
No, it "only leads to other errors".
Funny, I haven't heard of any showstopper bugs in OpenBSD libc - not this year, not ever. And it's ubiquitous, since I'm running it on my phone.
This bug, after ghost, would be a good opportunity to take a step back for a serious assessment of what must be removed for a secure system.
And i don't mean the political ones. Libraries. And i don't mean the physical ones. Long live static executables.
Has to get around stack overflow protection canaries (-fstack-protector-strong or -all), address space randomization, and a non-executable stack and heap. Ubuntu has run -fstack-protector-strong (covers functions calling alloca()) since gcc 4.9 release after 2015-05, according to #1317307. Kees Cook added the -strong feature to gcc, and is part of Ubuntu's compiler team, so it went straight into Ubuntu.
Good luck exploiting this bug.
Support my political activism on Patreon.
Jokes on you, DNS uses pascal-style length prefixed strings like SSL.
That's how we get attacks like heartbleed: "255A"
Who saw the name of the library, immediately went "oh, another C buffer attack," and rolled their eyes?
It's interesting how these things go.
If this would have been a vulnerability in MSVCRT, everyone would have mocked Microsoft and Windows.
However as this is a Linux vulnerability, the attention is turned to the used programming language instead.
Something to think about.
Isn't DNS one bit of glibc that can't be statically linked? e.g.
$ echo -e '#include <netdb.h>\nint main() { gethostbyname("foo"); return 0; }' | gcc -xc - -static
/tmp/ccgjLWYV.o: In function `main': :(.text+0xa): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
In fact, I think this is a major pain in the ass and one of the reasons muscl libc is gaining so much ground as that allows truly static linked and portable executables.
It would be very ironic if static linked glibc apps were not invulnerable to this bug.
If this would have been a vulnerability in MSVCRT, it would be concealed as long as possible, and who knows when it would be fixed?
However as this is a Linux vulnerability, it was openly discussed and it was fixed at once.
There, FTFY.
The CVSS score is a medium of 6.1 for the CVE. So this isn't as bad as Heartbleed
First, Heartbleed was actually a 5.0 base score, so this is more serious if you go strictly by CVSS score (which is not necessarily advisable). Reference.
Second, CVSS scores are based on a certain formula and small set of conditions; in particular, vulnerabilities are scored based on their immediate impact and not necessarily things that occur down the line. In other words, CVSS base scores do not include environmental metrics (There is a CVSS environmental score, but almost no one uses it except for CERT). So looking only at the base score is not always a good indication of severity; possibly its a good first approximation, but it's good to look into the details too. Since glibc is part of pretty much everything out there, this is a pretty serious issue.
Who saw the name of the library, immediately went "oh, another C buffer attack," and rolled their eyes?
It's interesting how these things go.
If this would have been a vulnerability in MSVCRT, everyone would have mocked Microsoft and Windows.
However as this is a Linux vulnerability, the attention is turned to the used programming language instead.
Something to think about.
And if it was Apple, we'd see a pile of posts telling us about how this really isn't a vulnerability.
However as this is a Linux vulnerability, it was openly discussed and it was fixed at once.
There, FTFY.
It was disclosed in July last year. That doesn't meet my definition of "at once".
https://sourceware.org/bugzilla/show_bug.cgi?id=18665
MS stopped being such a security concern once NAT came around then windows firewall as more of a standard apart from MSIE.
The source to MSVCRT is distributed with Visual Studio - it would be pretty hard to conceal a vulnerability like this.
I wish I didn't have to agree with you. In fact the "speed" with which this was addressed is sufficient to yield some credence to those who believe that it was supported by those who have in other circumstances acted to intentionally weaken secure cryptography, and other secure systems.
I will grant that the evidence in support of this theory is so scant that accepting it counts as paranoia, but similarly it is strong enough that rejecting it counts as living in a fools paradise. As with many situations it the uncomfortable middle position of "well, maybe" that seems most supported by the evidence.
OTOH, it's never fair to rule out bureaucratic inertia. Which isn't, now that I think about it, a much more comfortable option.
I think we've pushed this "anyone can grow up to be president" thing too far.
And it took 7 years to discover the bug. This is not a win for OSS security. Couple this with heartbleed and it's been a horrendous couple of years for trust of OSS code review.
See subject & this post http://slashdot.org/comments.p... hahahahaha so much for htaccess filters, eh folks? Meson shear = APK thru a wet paper bag built by web-wally "GotHisAssWhippedSlash"!
See subject & this http://slashdot.org/comments.pl?sid=8777063&cid=51564703 hahahahaha (this? This was just "too, Too, TOO EASY - just '2ez'" & it ALWAYS IS vs. "web wallies" like "GotHisAssWhipped" (by APK) "Slash", lol... so much for his "filters" which are like a wet paper bag against a meson shear! Oh the SHAME of it, hahahahahaha!
They compliment one other. I don't resolve 'every host-domain there is. Only favorites @ top of hosts (24 for beating indexing > 2++ million records) where you spend MOST time online! It's faster + more efficient than calling remote DNS servers. My program places them at the TOP of hosts for FASTEST POSSIBLE RESOLUTION from LOCAL system memory (hosts = cached like any file) also saves CPU cycles, RAM, + I/O turning off the slower usermode clientside DNS cache service vs. using kernelmode diskcache (no context switch overhead to IP stack this way too). The rest of my hosts files' entries are 3,854,815++ blocked entries vs. malware & ads of many kinds. I use Open DNS REMOTE FILTERING DNS SERVERS (combined with those hardcoded favorites) - not locally as a separate redundant wasteful recursive server or a service/daemon. Free model's good for single home systems not corporate LANS on AD. It LIGHTENS remote DNS loads - admins should like that too!
What happened to you APK? Did you lose Internet for a few days or something?
Change is certain; progress is not obligatory.
See subject & just to SPITE YOUR STUPID sockpuppet of "GotHisAssWhippedSlash" by yours truly? See here too http://slashdot.org/comments.p...
APK
P.S.=> Weak CHUMP - when will you FOOLS ever learn you are JUST NOT IN MY LEAGUE technically? I mean, lol, you've tried since 2012 to validly technically DISPROVE my points on hosts superiority to all other methods on numerous levels & can't... lol, so you resort to "when the TRUNCHEON is used in LIEU of conversation" & valid logical debate now too?
LMAO @ U - YOU FAIL THAT TOO, chumps... apk
See subject - For 28th largest company in the USA, Fortune 50 is what! Good pay, good people (their head of IT is "DA MAN" but younger than I but good person & talented too - from my local area too + the guys I worked with? Truly a "MOTLEY CREW" & nice people) & actually FUN!
I also was able to see a GOOD old pal of mine there too (he's a serious BIG-WHEEL now after 20++ yrs. there) as well thru their IT head (actually REGIONAL northeast head)... was truly nice on ALL possible levels.
* :)
(I.E.-> Was out "making a buck" which I do ON OCCASION for the right companies (always Fortune 50-500) & the right projects that interest me... LITERALLY was a 3 day job (almost continuous) of my usual custom DB applications migration + servers & workstations migration upgrade - cakewalk stuff for me, & good money too... I thank the merciful Lord for granting me a GREAT headhunter in fact!)
APK
P.S.=> That & just SHOWING "good ole' 'LOGE'" (lol) what's what & WHICH END IS UP too today also (See "when the truncheon is used in lieu of converation"? His HAMMERS shatter on me, repeatedly - lol, all linked to here after he shoots his mouth off too repeatedly - & this http://slashdot.org/comments.pl?sid=8777063&cid=51564703 was for 2 REASONS - 1st is to SPITE HIS ASS for his easily seen thru "tactics" exposing the TRUTH behind them, AND of course, to show how WEAK HE IS technically also - just like you!)... apk
APK Hosts File Engine 9.0++ SR-4 32/64-bit http://www.start64.com/index.p...
* Accept NO substitutes...
APK
P.S.=> Does more for speed (hardcoded favorites + adblocking), security (adblocking + blocking known bad sites/servers & dns issues avoiding DNS), reliability (vs. downed or dns poisoned dns), & anonymity (avoiding dns request logs) than ANY other SINGLE "so-called -solution'" out there, bar-none, for less using what you already natively have - unlike "AlmostALLAdsBlocked", UBlock, Ghostery etc. it's not detectable & blockable by ClarityRay/BlockIQ + it uses FAR LESS RESOURCES yet does far more (especially vs. DNS security issues)... apk