You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc Perkel <ma...@perkel.com> on 2007/05/16 14:46:00 UTC
[users@httpd] Keeping hackers out of /dev/smh
What's the best way to keep hackers out of /dev/shm? I'm getting the
script kitties installing IRC bots.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Norman Khine <no...@khine.net>.
Marc Perkel wrote:
>
>
> Sam Lavitt wrote:
>> Joshua Slive wrote:
>>
>>> On 5/16/07, Marc Perkel <ma...@perkel.com> wrote:
>>>
>>>> I was hoping for a more specific answer. If I could have done that I
>>>> wouldn't be here asking how to do it.
>>>
>>>
>> Also consider other services, such as FTP servers, SSH, SCP, etc. etc.
>> etc.
>>
>> Apache very well may not be to blame, and in my experience, outside of
>> a hole opened by a script in a site, it is quite secure.
>>
>
> I'm somewhat sue the problem is apache related because the files that
> end up there are owned by user apache.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
As pointed in previous threads, that the only way to prevent files to
appear in your machine is to look at your 'door'.
What is your OS and applications running on this machine?
Are you behind a router?
What router?
Perhaps look at these, change your passwords ;)
--
Norman
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Graeme Fowler <gr...@graemef.net>.
On Wed, 2007-05-16 at 13:23 -0700, Marc Perkel wrote:
> I'm somewhat sue the problem is apache related because the files that
> end up there are owned by user apache.
All that means is that the intrusion is most likely happening via a
process running as the apache user. In the vast majority of cases that
means the intrusion is taking place via something served up by your
webserver.
I'll take a punt: you have a customer with something like wordpress (or
other blog engine), phpbb or vbulletin (or some other forum
application), some sort of CMS like drupal, or something else written in
PHP which is being handled by mod_php loaded up as an Apache module.
Someone knows that's the case and is driving a bus through the holes the
application contains (or, to keep the house analogy going, they know of
a hole in your screen door that you haven't bothered to fix yet; you
lock the screen door but leave the internal one behind it on the latch.
Or something...)
[Update: you're using squirrelmail, which is written in PHP, but you are
at least up-to-date with that.]
Your problem is almost certainly not directly related to Apache.
You appear to be providing hosting as a business. You need to ensure
your customers keep their PHP applications patched and up-to-date in
order to keep your server(s) secure.
I'll say it again - your problem is almost certainly not directly
related to Apache.
There are many ways you can mitigate, but not remove, these PHP related
problems. The first is to stop running PHP as a module and take the
performance hit of running it as a CGI. That way, if you get clobbered
by an intrusion, you should know *exactly* which user (and therefore
site) caused it.
Please take the time to read up on how to do it. It's not hard.
Graeme
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Marc Perkel <ma...@perkel.com>.
Sam Lavitt wrote:
> Joshua Slive wrote:
>
>> On 5/16/07, Marc Perkel <ma...@perkel.com> wrote:
>>
>>> I was hoping for a more specific answer. If I could have done that I
>>> wouldn't be here asking how to do it.
>>
>>
> Also consider other services, such as FTP servers, SSH, SCP, etc. etc.
> etc.
>
> Apache very well may not be to blame, and in my experience, outside of
> a hole opened by a script in a site, it is quite secure.
>
I'm somewhat sue the problem is apache related because the files that
end up there are owned by user apache.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Sam Lavitt <sa...@lavitt.net>.
Joshua Slive wrote:
> On 5/16/07, Marc Perkel <ma...@perkel.com> wrote:
>
>> I was hoping for a more specific answer. If I could have done that I
>> wouldn't be here asking how to do it.
>
>
> Well, your original question was a little like "There's some money
> missing from my dresser drawer; how do I stop that from happening?" We
> told you to make sure no robbers get into your house. You then asked
> us how to do that.
>
> Well, given we know nothing about your house, there is nothing we can
> tell you that wouldn't be trivial: go check the doors to see if they
> are locked, check for any broken glass around the windows, and make
> sure you don't give the key to anyone untrustworthy.
>
> Translating that into apache-speak: check your logs for anything
> unusual, check all the dynamic content (php/cgi/etc) for possible
> vulnerabilities, and make sure that your OS, apache, and scripts are
> all up-to-date on security patches.
>
> If you want more specific help, you'll need to ask a non-trivial
> question.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
Also consider other services, such as FTP servers, SSH, SCP, etc. etc. etc.
Apache very well may not be to blame, and in my experience, outside of a
hole opened by a script in a site, it is quite secure.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Joshua Slive <jo...@slive.ca>.
On 5/16/07, Marc Perkel <ma...@perkel.com> wrote:
> I was hoping for a more specific answer. If I could have done that I
> wouldn't be here asking how to do it.
Well, your original question was a little like "There's some money
missing from my dresser drawer; how do I stop that from happening?" We
told you to make sure no robbers get into your house. You then asked
us how to do that.
Well, given we know nothing about your house, there is nothing we can
tell you that wouldn't be trivial: go check the doors to see if they
are locked, check for any broken glass around the windows, and make
sure you don't give the key to anyone untrustworthy.
Translating that into apache-speak: check your logs for anything
unusual, check all the dynamic content (php/cgi/etc) for possible
vulnerabilities, and make sure that your OS, apache, and scripts are
all up-to-date on security patches.
If you want more specific help, you'll need to ask a non-trivial question.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Marc Perkel <ma...@perkel.com>.
Sam Lavitt wrote:
> Marc Perkel wrote:
>
>>
>>
>> Graeme Fowler wrote:
>>
>>> On Wed, 2007-05-16 at 05:46 -0700, Marc Perkel wrote:
>>>
>>>
>>>> What's the best way to keep hackers out of /dev/shm? I'm getting
>>>> the script kitties installing IRC bots.
>>>>
>>>
>>> Mount /dev/shm noexec.
>>>
>>> More importantly, close the holes the script kiddies are getting in
>>> through. Locking the front door is far more efficient long term than
>>> leaving it open but putting a child gate at the bottom of the stairs.
>>>
>>>
>>>
>>>
>> Thanks for your help. How do I "lock the front door"?
>
> Figure out from your logs how they are getting in, and seal the exploit.
>
I was hoping for a more specific answer. If I could have done that I
wouldn't be here asking how to do it.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Sam Lavitt <sa...@lavitt.net>.
Marc Perkel wrote:
>
>
> Graeme Fowler wrote:
>
>>On Wed, 2007-05-16 at 05:46 -0700, Marc Perkel wrote:
>>
>>
>>>What's the best way to keep hackers out of /dev/shm? I'm getting the
>>>script kitties installing IRC bots.
>>>
>>>
>>
>>Mount /dev/shm noexec.
>>
>>More importantly, close the holes the script kiddies are getting in
>>through. Locking the front door is far more efficient long term than
>>leaving it open but putting a child gate at the bottom of the stairs.
>>
>>
>>
>>
> Thanks for your help. How do I "lock the front door"?
Figure out from your logs how they are getting in, and seal the exploit.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Marc Perkel <ma...@perkel.com>.
Graeme Fowler wrote:
> On Wed, 2007-05-16 at 05:46 -0700, Marc Perkel wrote:
>
>> What's the best way to keep hackers out of /dev/shm? I'm getting the
>> script kitties installing IRC bots.
>>
>
> Mount /dev/shm noexec.
>
> More importantly, close the holes the script kiddies are getting in
> through. Locking the front door is far more efficient long term than
> leaving it open but putting a child gate at the bottom of the stairs.
>
>
>
Thanks for your help. How do I "lock the front door"?
Re: [users@httpd] Keeping hackers out of /dev/smh
Posted by Graeme Fowler <gr...@graemef.net>.
On Wed, 2007-05-16 at 05:46 -0700, Marc Perkel wrote:
> What's the best way to keep hackers out of /dev/shm? I'm getting the
> script kitties installing IRC bots.
Mount /dev/shm noexec.
More importantly, close the holes the script kiddies are getting in
through. Locking the front door is far more efficient long term than
leaving it open but putting a child gate at the bottom of the stairs.
Graeme
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org