News for hackers. Stuff that matters.
Re:Security vulnerability in MySQL ubuntu by ushi on Sunday June 10, 2012 @10:14PM (#4092927)
Whether a particular build of MySQL or MariaDB is vulnerable, depends on how and where it was built. A prerequisite is a memcmp() that can return an arbitrary integer (outside of -128..127 range). To my knowledge gcc builtin memcmp is safe, BSD libc memcmp is safe. Linux glibc sse-optimized memcmp is not safe, but gcc usually uses the inlined builtin version.

How do you know, how the Ubuntu devs compiled their mysql server?

Re:Security vulnerability in MySQL ubuntu by dangrossman on Sunday June 10, 2012 @10:32PM (#4092960)
Try to connect to MySQL as root with a made-up password several hundred times. If you successfully connect, the bug is present and you know how it was compiled.
Re:Security vulnerability in MySQL ubuntu by ushi on Sunday June 10, 2012 @11:04PM (#4093031)
Hehe, ok ok.
Re:Security vulnerability in MySQL ubuntu by gringomorcego on Sunday June 10, 2012 @11:04PM (#4093029)
where is the perl one-liner :P?
Re:Security vulnerability in MySQL ubuntu by mcpherrinm on Sunday June 10, 2012 @11:22PM (#4093081)
perl -e 'use DBI; for($i=0;$i<4096;$i++){DBI->connect("dbi:mysql:", "root", "nope", {PrintError=>0}) and die "Vulnerable!";}'
Re:Security vulnerability in MySQL ubuntu by mjschultz on Sunday June 10, 2012 @11:24PM (#4093089)
Well, the Ubuntu part came from HD Moore [1]. I haven't been able to confirm it on my Ubuntu 12.04 virtual machine instance though, nor does my virtual machine appear to trigger the bug using the CVE-2012-2122 checker [2].

But, that is just my single VM instance and I would assume HD Moore knows what he is doing.

[1] http://pastie.org/private/903voijkkz8nmde3yqj4rw

[2] http://pastie.org/4064638

Re:Security vulnerability in MySQL ubuntu by zzzzzzzzz on Monday June 11, 2012 @12:07AM (#4093184)
I can confirm. Ubuntu 12.04 LTS (64 bit).
Re:Security vulnerability in MySQL ubuntu by Alan01252 on Monday June 11, 2012 @03:25AM (#4093543)
The C script is returning vulnerable on both my local machine (precise) and my vps (Ubuntu 11.10).

However tests of trying to brute force the root password using the mysql one liners in this thread have failed every time.

Both machines allow local access only so I assume I'm safe.

Re:Security vulnerability in MySQL ubuntu by michiel3 on Monday June 11, 2012 @06:11AM (#4093896)
Yep, if you're blocking remote hosts to authenticate on 3306 (or any other port you're running mysqld on) you're safe. The attacking host can't authenticate itself, so it's unable to exploit this bug.