This is applicable to you, guys. (24)

1 Name: hk0!0khonVgaHI 05/01/27(Thu)19:55 ID:lCPyUkyn

http://isc.sans.org/diary.php?date=2005-01-27

A bot that infects installations of MySQL on Windows is sweeping around today.

This usually isn't a problem for unix boxes because they can tell MySQL not to listen to the network, and connect to it with a domain socket from their Perl web application or whatever.
Since it's not possible to run MySQL on Windows without having it listen to the network, if you are going to run it on there for development purposes, please, please, PLEASE run it as an unprivledged user, and set the DBO password (root) to something other than a blank password.

2 Name: Albright!LC/IWhc3yc 05/01/27(Thu)22:29 ID:Heaven

Liar. This isn't applicable to me at all. :P

3 Name: hotaru!hoTarufiRE!!Cizp3pu2 05/01/28(Fri)01:33 ID:dakHrrxm

> Since it's not possible to run MySQL on Windows without having it listen to the network

what

4 Name: !#usr/bin/anon 05/01/28(Fri)04:56 ID:Heaven

Im not quite sure just how many people here are running a MySQL server on Windows.. I doubt its very low.

Anyway, fools running Windows as a server without a firewall of some description deserves trojans etc for leaving there box so damn open.

5 Name: dmpk2k!hinhT6kz2E 05/01/28(Fri)06:04 ID:O8yIYbgP

It's possible to run a patched windows machine unfirewalled just fine, although the added protection never hurt anyone.

What's up with RPC services listening to the world though? And you can't turn that feature off AFAIK. Braindead decision if ever I saw one...

6 Name: !#usr/bin/anon 05/01/28(Fri)14:10 ID:Heaven

>>2
Sure it is. You get to sit back and feel smug.

7 Name: !#usr/bin/anon 05/01/29(Sat)16:16 ID:Heaven

8 Name: !#usr/bin/anon 05/01/29(Sat)17:11 ID:4JdxnZyH

if you run without a password for root you deserve it.

9 Name: !#usr/bin/anon 05/01/30(Sun)11:18 ID:Heaven

>>8
Yeah, that's one hell of a 'kick me' sign.

10 Name: !#usr/bin/anon 05/01/30(Sun)12:21 ID:Heaven

But hang on, windows will let you get away with the Administrator's password being blank or stupidly easy, right?

What about UNIX?

11 Name: dmpk2k!hinhT6kz2E 05/01/30(Sun)12:35 ID:cvfi7asR

Depends. I doubt any modern version will allow you to do such a thing without forcing the issue.

12 Name: hk0!0khonVgaHI 05/01/31(Mon)04:25 ID:PAkuh1fe

10>>
In every unix OS that I've tried, the /bin/passwd command running as root never questions what you enter for any user... including a blank password.
Usually if you have a PAM module installed that does password quality checking, there is a module above it in the stack called something like pam_rootok.so which prevents it from second-guessing you. Other OSs like FreeBSD might warn you, but not stop you.
Yet another reason to not run as root all the goddamned time.

13 Name: Albright!LC/IWhc3yc 05/01/31(Mon)11:59 ID:n4ncswck

OS X does not have a root account by default. If you need to do something with root privileges, you can just use sudo.

I recall that in my Linux class, in which we used Red Hat, I had to practically make up a word to use as a password because it refused to let me use any of my "old" passwords.

14 Name: !#usr/bin/anon 05/01/31(Mon)13:41 ID:Heaven

>>13

It does have a root account, just not enabled. You can enable it in the user accounts settings.

15 Name: Albright!LC/IWhc3yc 05/02/01(Tue)00:54 ID:ZKbIK08V

Um, no, you can create it in NetInfo Manager. And by "enabling" it, you create it, so it doesn't have one in the first place.

16 Name: 14 05/02/01(Tue)19:22 ID:Heaven

I guess I stand corrected. Thanks for clearing it up.

17 Name: hk0!0khonVgaHI 05/02/01(Tue)23:38 ID:kFnZIzkp

15>>
No. It's just locked by default. Try running this in a terminal window on a fresh install...

nidump passwd . | grep root

You should see a "*". This means the account is locked... you can't log into it or use su to change to it. You can't even run passwd root because you can run passwd AS root, so it would ask you for the old one first :-)

You use netinfo manager to set the password to something "real".

Also, note that certain OSX processes like the page flush daemon and init are running as root. Although if you do a ps -aux it probably just says user "0" and not root.

18 Name: Albright!LC/IWhc3yc 05/02/02(Wed)01:31 ID:Heaven

Hmm... Okay, I guess I stand corrected.

19 Name: dmpk2k!hinhT6kz2E 05/02/02(Wed)06:51 ID:1ADY8HFU

So... how does Mac enable the root password? If you're not running as root, and root is disabled, there must be an intentional hole somewhere, at least until it's enabled.

Or have I missed something?

20 Name: !hcube5iNfc 05/02/02(Wed)10:24 ID:0PLzwuca

sudo su -
passwd

21 Name: !hcube5iNfc 05/02/02(Wed)10:28 ID:0PLzwuca

Oops, that should've been passwd root (kind of weird, I think, and different from Linux). And running passwd as root never asks you for the old one, at least on any system I've seen.

22 Name: dmpk2k!hinhT6kz2E 05/02/03(Thu)05:44 ID:vKMpaE+0

If that's true, then root was never really disabled in the first place. Or have I missed something?

23 Name: !hcube5iNfc 05/02/03(Thu)10:07 ID:eHgSvpPC

I wouldn't call it "disabled". It exists and it always has in OS X- I don't believe a Unix system could run without one (specifically a UID=0 account, though the name "root" is pretty much a requirement due to a lot of legacy).

Apple just doesn't set the password for it (note: this is not the same as a blank password ahem*Microsoft*cough), and they don't draw much attention to it.

24 Name: Albright!LC/IWhc3yc 05/02/04(Fri)01:12 ID:Fnl3ICjK

>>19: >>21 may work, but the way Apple (and everyone else) tells you to do it is: 1. Start up /Applications/Utilities/NetInfo Manager (a rather esoteric little utility).
2. Select "Authenticate" from the "Security" menu and type in your password.
3. Select "Enable Root User" from the "Security" menu.
4. Enter a new password for the root account when prompted.

Of course, it should be emphasized that 99% of Mac users won't need to do this. I've installed and am running MySQL, a new PHP and Apache installation, and other geeky stuff just fine without a root account.

This thread has been closed. You cannot post in this thread any longer.