MySQL Security Risk?

This is a discussion on MySQL Security Risk? within the Linux Security forums, part of the System Security and Security Related category; Hi All, I'd like to install MySQL and PHP onto my server that's hosted in a POP on ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2004
Neil
 
Posts: n/a
Default MySQL Security Risk?

Hi All,

I'd like to install MySQL and PHP onto my server that's hosted in a POP on
the internet. No i have no firewall on tha machine, but i only have the
SSH, FTP (chrooted, no real users) and APACHE services running. I trust
these services (rightly or wrongly).

Now MySQL has been around for ages and i was wondering if it is secure
enough to run on an open server? I understand that you can limit access to
users at specific IP addresses, but is this service still vunerable to
attack?

I'd greatly appreciate your views.

Neil



Reply With Quote
  #2 (permalink)  
Old 08-24-2004
Peter Hille
 
Posts: n/a
Default Re: MySQL Security Risk?

On Mon, 23 Aug 2004 21:00:44 +0000, Neil wrote:

Hi Neil,

> Hi All,
>
> I'd like to install MySQL and PHP onto my server that's hosted in a POP
> on the internet. No i have no firewall on tha machine, but i only have
> the SSH, FTP (chrooted, no real users) and APACHE services running. I
> trust these services (rightly or wrongly).
>
> Now MySQL has been around for ages and i was wondering if it is secure
> enough to run on an open server? I understand that you can limit access
> to users at specific IP addresses, but is this service still vunerable
> to attack?
>
>

If you want to use the MySQL server only with the Apache/PHP on the box
and don't need any database connections from other hosts you can
completely disable the MySQL networking features so that the databases can
only be accessed from the box that runs the MySQL server.

> I'd greatly appreciate your views.


I have some MySQL/PHP based web applications running on a Debian box for
about two years now and until now nobody who tried to attack it was
successful until now, so IMHO MySQL and PHP are safe enough to use if you
properly configurre them ;-)


> Neil


Peter
Reply With Quote
  #3 (permalink)  
Old 08-24-2004
Jem Berkes
 
Posts: n/a
Default Re: MySQL Security Risk?

> have the SSH, FTP (chrooted, no real users) and APACHE services
> running. I trust these services (rightly or wrongly).


Your entire system is only as secure as the weakest link. If you keep all
your server software up to date, you will have no problem.

--
Jem Berkes
http://www.sysdesign.ca/
Reply With Quote
  #4 (permalink)  
Old 08-24-2004
Jose Maria Lopez Hernandez
 
Posts: n/a
Default Re: MySQL Security Risk?

Neil wrote:
> Hi All,
>
> I'd like to install MySQL and PHP onto my server that's hosted in a POP on
> the internet. No i have no firewall on tha machine, but i only have the
> SSH, FTP (chrooted, no real users) and APACHE services running. I trust
> these services (rightly or wrongly).
>
> Now MySQL has been around for ages and i was wondering if it is secure
> enough to run on an open server? I understand that you can limit access to
> users at specific IP addresses, but is this service still vunerable to
> attack?
>
> I'd greatly appreciate your views.
>
> Neil
>
>
>


In my penetration tests with nessus and some exploits it looks pretty
strong. You should be more worried about Apache, that it's much more
problematic. At least it's my point of view.


--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAŅA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Reply With Quote
  #5 (permalink)  
Old 08-27-2004
Brian C. Lane
 
Posts: n/a
Default Re: MySQL Security Risk?

In article <eGBWc.104990$r4.2688081@news-reader.eresmas.com>, Jose Maria Lopez Hernandez wrote:
> Neil wrote:
>> Hi All,
>>
>> I'd like to install MySQL and PHP onto my server that's hosted in a POP on
>> the internet. No i have no firewall on tha machine, but i only have the
>> SSH, FTP (chrooted, no real users) and APACHE services running. I trust
>> these services (rightly or wrongly).
>>
>> Now MySQL has been around for ages and i was wondering if it is secure
>> enough to run on an open server? I understand that you can limit access to
>> users at specific IP addresses, but is this service still vunerable to
>> attack?
>>
>> I'd greatly appreciate your views.
>>
>> Neil
>>
>>
>>

>
> In my penetration tests with nessus and some exploits it looks pretty
> strong. You should be more worried about Apache, that it's much more
> problematic. At least it's my point of view.
>
>


MySQL has had some pretty serious security problems in the past (I
seem to remember one where the password checking code used the length of
the supplied password to control the check...)

I would use iptables to block external access to port 3306 and if any
external apps need to access it you can setup a ssh tunnel from the remote
machine so that the connection is protected.

Brian

--
---[Office 73.3F]--[Fridge 38.6F]---[Fozzy 93.5F]--[Coaster 73.2F]---
Linux Software Developer http://www.brianlane.com
Reply With Quote
  #6 (permalink)  
Old 08-31-2004
Nuno Paquete
 
Posts: n/a
Default Re: MySQL Security Risk?


> I would use iptables to block external access to port 3306 and if any
> external apps need to access it you can setup a ssh tunnel from the remote
> machine so that the connection is protected.
>
> Brian
>


How woul you create a ssh tunnel?
With stunnel?
Using a VPN?
Reply With Quote
  #7 (permalink)  
Old 08-31-2004
Tim Haynes
 
Posts: n/a
Default Re: MySQL Security Risk?

Nuno Paquete <nmp@ispgaya.pt> writes:

>> I would use iptables to block external access to port 3306 and if any
>> external apps need to access it you can setup a ssh tunnel from the remote
>> machine so that the connection is protected.
>>

>
> How woul you create a ssh tunnel?
> With stunnel?
> Using a VPN?


Most people would use ssh to create an ssh tunnel.

~Tim
--
18:47:25 up 14 days, 2:22, 3 users, load average: 0.65, 0.74, 0.47
piglet@stirfried.vegetable.org.uk |And the wind / And the rain
http://spodzone.org.uk/cesspit/ |Falls around
Reply With Quote
  #8 (permalink)  
Old 09-01-2004
Christopher Browne
 
Posts: n/a
Default Re: MySQL Security Risk?

Quoth Nuno Paquete <nmp@ispgaya.pt>:
> How woul you create a ssh tunnel?
> With stunnel?
> Using a VPN?


No, I'd use ssh.
--
output = reverse("moc.enworbbc" "@" "enworbbc")
http://cbbrowne.com/info/nonrdbms.html
Anyone who can't laugh at himself is not taking life seriously enough.
-- Larry Wall
Reply With Quote
  #9 (permalink)  
Old 09-01-2004
dd
 
Posts: n/a
Default Re: MySQL Security Risk?

How about locking down mysql to localhost then running PhpMyAdmin

(Allowing clients to use a web interface which connects to locahost )


Brian C. Lane wrote:

> In article <eGBWc.104990$r4.2688081@news-reader.eresmas.com>, Jose Maria Lopez Hernandez wrote:
>
>>Neil wrote:
>>
>>>Hi All,
>>>
>>>I'd like to install MySQL and PHP onto my server that's hosted in a POP on
>>>the internet. No i have no firewall on tha machine, but i only have the
>>>SSH, FTP (chrooted, no real users) and APACHE services running. I trust
>>>these services (rightly or wrongly).
>>>
>>>Now MySQL has been around for ages and i was wondering if it is secure
>>>enough to run on an open server? I understand that you can limit access to
>>>users at specific IP addresses, but is this service still vunerable to
>>>attack?
>>>
>>>I'd greatly appreciate your views.
>>>
>>>Neil
>>>
>>>
>>>

>>
>>In my penetration tests with nessus and some exploits it looks pretty
>>strong. You should be more worried about Apache, that it's much more
>>problematic. At least it's my point of view.
>>
>>

>
>
> MySQL has had some pretty serious security problems in the past (I
> seem to remember one where the password checking code used the length of
> the supplied password to control the check...)
>
> I would use iptables to block external access to port 3306 and if any
> external apps need to access it you can setup a ssh tunnel from the remote
> machine so that the connection is protected.
>
> Brian
>

Reply With Quote
  #10 (permalink)  
Old 09-01-2004
dd
 
Posts: n/a
Default Re: MySQL Security Risk?

Neil wrote:
Try runnign mysql bound to locahost

then setup phpMyAdmin so when each use is setup /admin or someting
referes to their own phpMyAdmin that allows them to connect only to
their own database.



The webserver on localmachine queries mysql and returns results to php
perl servlet within the server.This means mysql only runs locally hence
keeps out the globe



> Hi All,
>
> I'd like to install MySQL and PHP onto my server that's hosted in a POP on
> the internet. No i have no firewall on tha machine, but i only have the
> SSH, FTP (chrooted, no real users) and APACHE services running. I trust
> these services (rightly or wrongly).
>
> Now MySQL has been around for ages and i was wondering if it is secure
> enough to run on an open server? I understand that you can limit access to
> users at specific IP addresses, but is this service still vunerable to
> attack?
>
> I'd greatly appreciate your views.
>
> Neil
>
>
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0