Slashdot Log In
Half a Million Database Servers 'Have no Firewall'
Posted by
CmdrTaco
on Wednesday November 14, @08:40AM
from the well-thats-not-so-bad dept.
from the well-thats-not-so-bad dept.
An anonymous reader writes "There are nearly half a million database servers exposed on the Internet, without firewall protection according to UK-based security researcher David Litchfield."
Related Stories
Firehose:Half a million database servers 'have no firewall' by Anonymous Coward
Half a Million Database Servers 'Have no Firewall'
|
Log In/Create an Account
| Top
| 322 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Have i missed something? (Score:3, Informative)
(http://fsfe.org/join | Last Journal: Saturday March 31 2007, @05:28PM)
Re:Have i missed something? (Score:5, Informative)
(http://trolltalk.com/ | Last Journal: Friday November 16, @11:13AM)
That's not true.
For example, you may have a stand-alone java app at multiple locations that can query the database directly, so you'd definitely open up the port.
This is just another example of "OMFG LOOK AT ME!!! I FOUND TEH SECURITY HOLE!" bullshit. Same as "your computer is broadcasting its IP address."
Not everything has to go through a bloody web server.
Their "idea" of a vulnerability was if the port was open - not if they could gain access.
Web Services? (Score:5, Informative)
(http://www.nova.edu/~jonaadam)
Re:Web Services? (Score:5, Insightful)
(http://trolltalk.com/ | Last Journal: Friday November 16, @11:13AM)
The same argument could be made about ANY service/port, including http, ftp, etc. The premise of the article - that "port open == bad all by itself" - is junk.
And as we have repeatedly seen, accessing your db through a web server gives 2 different attack vectors - flaws in the web server, and flaws in the middleware.
Nothing except an unplugged box with the hard drive removed will ever be 100% secure.
Good Point, but... (Score:5, Insightful)
(http://www.nova.edu/~jonaadam)
I say its FUD because (Score:5, Insightful)
(http://www.nova.edu/~jonaadam)
Re:Web Services? (Score:4, Interesting)
(http://www.icemark.net/~beh/)
The same argument could be made about ANY service/port, including http, ftp, etc. The premise of the article - that "port open == bad all by itself" - is junk.
If you don't take any precaution with your data, you're going to lose, no matter how many layers -- but somehow I can't find myself agreeing that giving the raw DB socket and passing all necessary authentication info to the world at large within the applet I'm sending out is a good way either. (of course, you can try and lock down the DB user so that the user within the DB can't do much damage, but you're still opening a hole through which you might also try and hack for other DB accounts with more permissions).
Re:Have i missed something? (Score:5, Informative)
(Last Journal: Friday June 30 2006, @10:04PM)
I have mentioned this several times on slashdot but there is a severe lack of actual professionals in control of networks out there. I would say that there are all too many who have never even thought about security at this level, they just make sure that they have control of their users and pat themselves on their back for being able to make two servers talk across a WAN.
This all derives from the misconception that you have to be 40+ to be a seasoned professional in the business world. The IT security field is a very new one relatively, some of the best security personnel are much younger than I am but never get considered because even with 5 years experience, a degree and several certifications, they are only 24 and therefore not worthy of note. (no I am not ranting about myself, I ahve a wonderful position for someone my age, but I know many IT geeks who get passed over because of their age, although no one would ever admit it.) Get the 40 year old guy who was a sociology major and did data entry for 10 years before being asked to take over NT environments. This way you get a 'seasoned' guy because he has a few more wrinkles and that makes him a better 'fit' and definitely must make him more capable.
Re:Have i missed something? (Score:5, Funny)
(Last Journal: Sunday November 11, @10:46AM)
Re:You missed something too (Score:5, Funny)
(http://poltras.com/)
Re:You missed something too (Score:5, Funny)
(Last Journal: Thursday November 01, @10:16AM)
You are not a lawyer, you are a hairball?
(sorry, couldn't resist)
Chicago (Score:5, Funny)
what? (Score:2, Funny)
Re:what? (Score:5, Insightful)
If you secure your server correctly in the first place.
Close up, secure and encrypt ports that consume passwords and serve data.
You don't have a problem! Within reason of course.
I that gets breached, a firewall won't protect you from an attack either.
Du...
I wonder how many people know that firewalls don't actually do anything.
Accept keep useless network fanboys employed.
Re:what? (Score:5, Insightful)
(http://www.mattcaron.net/)
Firewalls are good for:
- Helping to limit access to services which don't have built in access limits (think tcp-wrappers++)
- Helping to protect a pile of machines over which you have little to no control (a bunch of desktops in the office, for example).
When talking about servers, if you sufficiently harden your machine, a firewall does very little, especially if the service being compromised is one which the firewall allows pretty much anyone access to...
Re:what? (Score:5, Interesting)
(Last Journal: Thursday November 01, @10:16AM)
Now, sure, you can say "It's open source, it's got all kinds of people looking at it, of course it is secure." But face it: people make mistakes, and the more subtle the screwup, the more people it will take to find it. Eventually there will be a screwup too subtle for all the people looking to find. Then you have potential setup errors, something was missing in the documentation or overlooked by the individual doing the install/test, etc. You now have a vulnerability. Yes, none of these mistakes *should* exist, and having a firewall *shouldn't* be used as the *primary* method of protecting your system, but extra defense is good. The more software you run, the wider the variety of operating systems you run, the more likely one of these errors is to happen. A firewall is cheap (usually), and it happens to block this kind of attack.
Yes, relying on a firewall as your only means of defense is stupid, and there is a lot it doesn't protect, but a door lock doesn't defend against all means of entrance - it doesn't mean you shouldn't lock your doors. A firewall *is* a nice backup to have in case of human error in the programming or setup of an application.
Not Suprising (Score:5, Informative)
This isn't so suprising:
The world at large is uninterested and/or unaware of security when it comes to computers.
Re:Not Suprising (Score:5, Insightful)
I've seen a number of things cobbled together just to get a department or company through something that suddenly become available to a lot more people than the original target audience. It's a good argument for never taking short cuts when you're programming, but I'm sure there are a lot of people that have gotten something out on a deadline only to turn around and look at it later and say "What came over me to do it that way?"
Re:Not Suprising (Score:5, Funny)
If you can't correct it, you needn't detect it.
Re:Not Suprising (Score:5, Funny)
Insufficiently precise? Holy weasel words batman. You were wrong.
Re:Not Suprising (Score:5, Insightful)
I've worked and volunteered for several non-profit, NGOs and small businesses. And worked in B2B sales selling computer equipment to them. Generally the IT staff is an outside consultant who does a few things (whatever they're able to afford). Setting up of complex computer equipment and software is often left to someone who's able to understand the instruction manual but no IT training (so it could be the receptionist, the director or somewhere in-between). Setting up a firewall is expensive and doesn't fit into many budgets of small organizations. Someone with no IT training may also think a DB server or networked printer needs no firewall.
Let me put it this way: as a non-IT worker, I haven't put 100% of my resources behind studying I.T. (software, hardware) etc. I've programmed computers and used computers since I was born. Despite being somewhat knowledgeable in TCP/IP and reading firewall and comp. security books (mostly for self-interest), I'm not confident I can even configure an adequate firewall for my home computer. Things like FreeBSD's IPFW are supposed to be "easy" to setup. Not my experience. Its sheer confusion. MS, Apple and some OSS firewalls are supposed to make it even easier. Block this port, block that port and that's it??? don't think so. I'm not even 50% confident this solution provides adequate protection esp for a NGO, non-profit, SMB or home computer. So how is someone not as well-read supposed to setup a firewall on a limited budget? But a pre-built hardware solution? Still that needs to be setup and configured too. And even then, you still have to be knowledgeable enough to *test* whatever solution you're using to actually make sure it works and keeps your system well protected.
Not a trivial or inexpensive task. But people with no training or knowledge are often asked to do this.
Only SQL server and Oracle? (Score:4, Interesting)
Questions (Score:2)
(http://slashdot.org/)
So what if it is not behind fw (Score:1)
(http://www.getoto.net/)
What's the fuss then?
Yawn (Score:5, Insightful)
(Last Journal: Wednesday October 03, @08:46AM)
1. Because everyone knows that a firewall is the end all and be all of security.
2. How do they know they don't have a firewall and not just an open port?
3. Open port != DB server
5. Maybe some of them actually need/want to have remote people access them (and they don't know about VPNs(lolz))
6. Yeah some people should get their shit together
Did Mr. Litchfield crash his BMW and wants a new one? This just smacks of "ZOMG!!! Ur ports are open, give me ur monies and I will fix u!" His company is even linked in the fourth paragraph. Next please.
Half a million? (Score:2)
Corporate Data? (Score:4, Insightful)
Also, the sample of 1 million is very small to be drawing these conclusions.
In short, "Nothing to see here - move along."
Declaration of interest (Score:5, Insightful)
Oracle's listener on port 1521 (Score:5, Insightful)
I wish he had known what he was writing about before he actually wrote the damn article.
So? (Score:2, Insightful)
And the default combination of "root" and no password isn't as insecure as you think, because you still need to originate queries on the machine itself. You would have to get a web hosting account on the server (or find some idiot who wasn't chmod-ing uploaded files non-executable) in order to muck about. Or rather, giving each hosting customer their own database username and password and only GRANTing them permissions on their own databases is no more secure than having users use "root". Think about it; if you were running scripts on the server, then you could look in files in other people's home directories, where their database username and password would be clearly visible. There is no* workaround, either; the apache daemon has to have read access to every user's scripts, including the code used to undo any ad hoc obfuscation applied by users to passwords.
* Actually, you probably could have every user run an instance of httpd in their name, and listening on a non-privileged port which was firewalled off from the outside world. You'd then need one "master" server configured with a module which would do nothing but route incoming requests to specific ports based on hostname. I dread to think how slowly this would run.
Pink Floyd theorem (Score:1)
I can see how this would work (Score:2)
(http://www.conversal.co.uk/)
And ... (Score:2, Insightful)
Accountability is lacking (Score:3, Insightful)
(http://mcgrew.info/ | Last Journal: Monday November 19, @11:27AM)
No it isn't. Now, if there were some penalty to losing half a million identities that was borne by the database owner instead of the poor schmucks whose identities were stolen, then it would be amazing.
But when your data is stolen, I'm the one who has to pay. Why should you care? You're not paying.
Well... (Score:5, Interesting)
(http://www.neilgunton.com/)
Since my home is on cable, there isn't any static IP address to put in the server's iptables rules, and so I need to leave the mysql port on the server open. For security I use MySQL grant tables to specify that from outside only the restricted 'replication' user can have password access. Even if someone managed to guess the password for that user, the grants say that all they can do is replicate (and then they'd have issues because they wouldn't have any initial copy of the database). Since I don't store passwords in the db at all, it's fairly secure. Sure, it's not bulletproof, but as long as you're aware of the issues and take reasonable steps, it's very possible to have a database server intentionally open to the internet.
Even better, run the replication over ssl, then nobody can sniff anything from the stream. I haven't done that yet (until recently I was running an older version that didn't support ssl) but it is on my to-do list.
Another small thing you can do is to change the port that MySQL is listening on, but haven't bothered to go that far yet - the existing security seems to have been pretty solid.
Might I introduce you to SSH (Score:5, Informative)
(Last Journal: Friday August 17, @05:34AM)
A webserver needs at most three ports open, 80, for obvious reasons, 443 for https and 22 for ssh. That is it.
If you need to connect remotely to another service you do it via SSH.
Mysql is a database. Let it do databases. Let SSH do its job.
When I see people use your logic you make my jaw drop. SSH for live. EVERYTHING over ssh. ALWAYS. Full stop, end of story. No argument.
Exposing your database like this is insanity and you are asking for trouble. Mysql authentication is a joke and considering you are doing it this way, you probably have it setup wrong. Because what you are doing is wrong.
Tunnel over SSH. It is a most basic tool. Read up on it, NOW! Google: mysql tunnel ssh
Offcourse, next thing he will say is that he uses telnet for remote access, some admins would make ghandi loose his temper
Doesn't surprise me (Score:4, Interesting)
(http://www.ledow.org.uk/)
Third, you have things like Windows Firewall where for some things it's just easier to run without the firewall than with it (not that I'd do it, but I've seen it happen). Even something simple like OpenVPN over Windows Firewall in udp mode (the only decent performing mode in OpenVPN) is next-to-impossible to get running properly - the time you take to make it work is better spent installing a real firewall that can do the job (even ZA "just handles it"). A lot of servers are open but "hide behind" an external or hardware firewall on which necessary ports are then just opened. I remember trying to get my last workplace to install at least Windows firewall on clients and servers alike - the exceptions were already in place, the systems worked perfectly with it turned on, but they still wouldn't do it. Fortunately, they were behind an external firewall not configured by them - however a single virus could run rampant across the client PC's in a matter of minutes.
Fourth, most people have no idea what packets their networks send out to the world, or what ports are open - and they don't care until the day they notice that someone is accessing their system, which can be years after it was first compromised.
It's quite simple. If you can see it from outside your network, so can anyone in the world. If they can see it, they can attack it (and even sometimes if they CAN'T see it but know it's likely to be there!). If they can attack it and you don't update it, you could be in serious trouble. And even if you are firewalled off to the maximum, have up-to-date patches and proper security procedures attackers can still sometimes get through, but making their life as difficult as possible is not only fun but also productive.
Some people just don't care though. It's not going to change any time soon. Viruses and attacks are so common you hear things like "yeah, my laptop had a virus on it but I can't afford the subscription so I didn't bother clearing it up - made my computer a bit slow, though". Most people are just far too casual. You can even over-do the dramatics and explain possible dire consequences in exquisite detail. People go "Oh, really." and then carry on as they always have. Unfortunately, these people then go on to make websites for their friends, install servers for that charity down the road etc. and you end up with much worse problems.
Nobody cares anymore. Anyone serious will laugh at you if you're really that stupid to leave a server open to the world. The average joe doesn't know enough to see what you're laughing at and most people want things that work and sod the consequences. If that means running as admin with no firewall in order to save them having to learn about proper security permissions etc. then that's what happens - I know that every one of my users would make themselves admin given half the chance.
Hell, even my ISP blocks internet access to you if they see you have ports 137-139 open to the Internet and they take an awful lot of flak for it. They just redirect all your web traffic to a holding page that tells users how to fix the problem until they either a) fix it or b) tell the ISP to take it off. Guess which option is used the most?
I'm fast moving into the "reap what you sow" mindset. If you're stupid enough to do such things, tough (and my prices double for fixing it up). If you know you can't set it up on your own, get help. I'll help you - my advice is free, it's only the actual work I charge for. Loads of people will help you. But if you just ignore it, I'll ignore you and so will loads of other people.
I had a critical server at a school that every day detected a virus "in memory" and in the same location in the same file on the server's boot drive (not the quarantine directory, and even if it was, the quarantine directory is excluded from scanning by default for obvious reasons). Every day the warnings come up, every day it was "cleaned" by the AV and put into quarantine, every day it was back there on the next scan. The response from the network manager when I point it out (and make a bit of a fuss)? "It's been there forever and it says it's in Quarantine so there you go.". I actually took quite a lot of flak myself over that one. In the end I just carried on doing what I did and waited for the day when they found out that their servers were compromised and the extremely sensitive information that passed over the network each day was being monitored. The day hadn't come by the time I left. Somehow, to some people, that would confirm that they were wrong and I was right. I don't see it that way.
I've recently taken on a job at a tiny school who are trying to do some interesting stuff. Words like "set up a network, we don't care what supplier you use or how you set it up, so long as you can manage it all" are music to my ears. The network took a day to "install" and be useable. It's taken a lot longer to secure effectively and I'm still not happy - I'm into several dozen group policies, security groups and logon scripts and still I haven't seperated out critical functionality enough to fine-tune it the way I want for particular users - but the fact is that I know EVERYTHING that goes on with it because it's under control. I nearly had a heart attack one day because the AV detected PSKill from the sysinternals utilities as a potential malware. I know what ports are open, I know my backup plan for if the external firewall fails, I have an internal firewall of my own that I know is actually better and which is being used for testing potential VPN access (which is NOT going live until I'm happy with it), I monitor everything in and out of the network, everything is on "minimum permissions necessary" and it all works wonders. But if I hadn't taken the time to do it, they'd have just bought a "slot-in-here" system and then never updated it (or left it to autoupdate - I don't know what's worse).
The fact that databases are accessible on the net is minor in comparison. You'll probably trace most of them back to simplistic and cheap hosting services or people running a database that doesn't do anything externally useful because they even know it's running. I'd guess that at least a few of them are Windows 2000/2003 servers with no firewall at all, but just happen to have things that use SQL server - even my tape backup program and antivirus run their own SQL databases. Then you have things like
After a while, you get bored of hearing it. You actually start wishing that someone'd write one of the "old-fashioned" viruses from the DOS days - the ones where when you caught it it would reformat your drive, destroy your boot sector and low-level format everything. It'd clear up these unsecured nets in a matter of hours.
Printers too (Score:1)
(http://michaeladams.org/)
My flatmate had great fun printing 40 pages of LOLCats transcontinental!
Next phase is to code up a genuine bit bucket: you pipe the bits in, they emerge goodness-knows-where from some poor sods randomly chosen printer
Yet Another Trumped Up Headline (Score:1)
Now, if the headline was "Half a Million Database Servers Left Configured With No Firewall, No Client Restriction, Default Root Credentials, and Listening on Default Ports" - then you have my attention.
Course, the sad fact is that my headline is probably just as likely to be true as the article headline, when you consider all the installs of databases other than SQLServer and Oracle (mysql, postgres, etc).
-- Kimball Larsen
http://www.kimballlarsen.com/ [kimballlarsen.com]
what about MSDE? (Score:2)
pretty sure most of these are just the lite versions of these databases on people's desktops or laptops while they are on broadband. a lot of devs also have dev versions of db servers. SQL 2005 Dev edition is basically the enterprise edition that lets you install it on XP and no limits other than a license
Clueless researcher? (Score:2)
And this is always a problem? (Score:2, Interesting)
(http://slashdot.org/)
How many of those are small, MySQL driven LAMP-3 setups -- you know, the kind that power millions of websites? Where a decent amount of care setting up Linux, Apache, MySQL, and the final P [whether that is Perl, Php or Python -- the three in the acronym above] good coding practices make the necessity of a separate firewall basically moot.
Oracle is partly to blame (Score:2)
(Last Journal: Tuesday June 27 2006, @08:05AM)
Oracle is mostly to blame with their idiotic processes that need rlogin access as root. Even though your Oracle database is running as user "oracle", it still needs to rlogin to itself as root every 2 seconds to run some unknown commands. The only way to secure an Oracle server is to completely firewall it off from the outside world and only let the application server talk to it.
Disclaimer: I'm a Linux sysadmin that builds Oracle database servers all day.
IP Addresses (Score:2)
The IP addresses in the experiment were randomly created.
This means that their test could have hit some old woman's PC who happened to be dialled up over her phone line at the time, and using the IP address assigned to her by her ISP.
If she doesn't have a firewall, then of course the Oracle port could be open. Is this a security risk? Well if she only uses her computer for email then no.
Was an Oracle DB with customer's credit card details exposed to the world? Absolutely not!
Links please... (Score:2)
Links please. thx
Um... Not exactly. (Score:5, Insightful)
(http://www.neverwhen.net/)
Let's read the article and see what that headline really means.
He found open ports on just over 200 servers, which correspond to the ports used by two popular database servers. That's all. The article doesn't say that he actually connected to them, confirmed that there were real databases running there, or even identified the owners. He found two hundred open ports out of a million randomly chosen addresses on the Internet. But "0.02% of Internet Connected Computers May Or May Not Be Running Database Software" just isn't the kind of headline that grabs attention.
Unless there is a lot more detail, preferably from someone who isn't in the business of selling firewalls for databases [ngssoftware.com], then you'll have to forgive me for not being terribly concerned about this revelation.
So what? (Score:2)
(http://membled.com/)
Hopefully the DBMS supports SSL or other encrypted connections so outsiders can't eavesdrop or hijack sessions.
bad design (Score:1)
Why a Firewall Anyway? (Score:2)
'Database Servers' (Score:2)
(http://slashdot.org/)
Lets be honest here, only small percentage of those computers are actually servers, and of those that are - many have port 1433 port open for something other than database.
You install microsoft visual studio express, get SQL express to go along with it and because you don't have that stupid MS firewall enabled you automatically fall into beforementioned group. Newsflash, not every computer on internet is a server. And not every installation of SQL database has any data in it to live up to it's name.
Perfectly reasonable behaviour. (Score:2, Insightful)
Did the kids just get out of school or something? (Score:2)
Yes, the article looks like just a press release based on dubious extrapolation of data, but it doesn't mean that it's OK to have your company's application servers around the world capable of being accessed by anyone else around the world. If you trust Oracle, IBM, Microsoft or whoever else to write bug-free code you're a braver man than I.
And? (Score:2)
We can thank him for Slammer (Score:2)
Database security (Score:2)
Did an inventory of all databases and then went out and found out who did what to those databases. Created individual logins with express rights (Select, Insert, Update, Delete). Web apps if they were lookup only just got Select, whereas those who wrote would get Select, Insert.
We also blocked port 3306 on our Pix firewall. Good luck hitting those MySQL boxes. Servers have separete networks for internal and external traffic so web servers can communicate with database servers but people outside can only see the web server.
Unscientific (Score:1)
Unfirewalled Excel spreadsheets by the billions (Score:1)
(http://crisatunity.com/)
RE:Firewalls (Score:2)
What?! Sheesh, now I suppose you're going to tell me that I cannot have a Windows box without virus / spyware / firewa &^%@@***Mh^^
NO CARRIER
Re:donttagmebro (Score:2)
(http://66.249.93.104/ | Last Journal: Monday November 20 2006, @09:27AM)
Re:Needs more cowbell (Score:2)