
miguel.filipe at gmail
Dec 22, 2004, 6:29 AM
Post #7 of 12
(857 views)
Permalink
|
|
Re: about php security.. big apache+php deploy
[In reply to]
|
|
Hi, thanks for the reply On Wed, 22 Dec 2004 11:03:35 +0100, Klaus Wagner <klaus [at] it-austria> wrote: > On Tue, Dec 21, 2004 at 07:16:06PM +0000, Miguel Filipe wrote: > > Hi there, > > > > To put things simple, I'm a bit worried with php, here's why: > > > > I don't know SHIT about securing php instalations... > > I've read about hardened-php, and I wondered if someone uses it, and > > how reliable and intrusive they are ( false positives interest me > > especially). > > Also I would like to receive input from mod_security users...from what > > I understood, if that's enabled, then in a php forum I cannot > > write/quote SQL code in my posts... (sql injection prevention..) > mod_security has the advantage, that malicious access is immediatly > intercepted and does not hit your php apps, but is quite tricky, > when it comes to false positives. > > if you know your applications well, you can be quite restrictive > and prevent all sorts of sql injection, but if you know your applications > well, you could fix them to do proper input validation. > > at least you can use mod_security as an IDS an log malicious access > ... may help in some cases > > > > The problem is a big server, 6000 acounts with > if 6000 acounts means 6000 application spaces you are quite in trouble > > my suggestion is to lock down the whole apache+php in an own chroot > to separate it from the system. > separation of the applications one from the other would be fine, > but this would break usage of VirtualHosts and would need an apache > instance per application. thought about it and can't do at, we don't use vhosts but use user_dir, for 6000 users.. on a diferent filesystem... (/home) Which means I cannot share the /home via hard-link inside a chroot. Basically, making a chroot inside /home is the only possibility, but i'm not shure if I wan't to do that. chroot would be much easier if a "small" scenario. > > apache+suexec+user_dir+php, on a solaris machine. > > I plan to try changing config options and security settings so it > > becomes a bit more hardened. > > the problem with those settings is that some applications > won't work correctly, and the settings doesn't help if your > php version is broken (-> the Never... worm) > I know that, I'm quite alert to those kind of things.. . But has all sysadmins, I have too much work on my hands :) > > > > > > Any advices are welcome. > > > > ps: don't "advice" me to close the server, deny funcionality, etc, > > these won't do... the server exists, has the acounts and I got to live > > with it... > > > > -- > > Miguel Sousa Filipe > > > > -- > > gentoo-security [at] gentoo mailing list > > > > > -- Miguel Sousa Filipe -- gentoo-security [at] gentoo mailing list
|