|
BugTraq
PHP security (or the lack thereof) Jun 16 2006 11:21AM Darren Reed (avalon caligula anu edu au) (4 replies) Re: PHP security (or the lack thereof) Jun 22 2006 12:15PM john mullee (jmullee yahoo com) (1 replies) Re: PHP security (or the lack thereof) Jun 24 2006 10:42PM Darren Reed (avalon caligula anu edu au) (2 replies) Re: PHP security (or the lack thereof) Jun 27 2006 05:47AM Tonnerre Lombard (tonnerre lombard sygroup ch) (1 replies) Re: PHP security (or the lack thereof) Jun 27 2006 03:38AM Ronald Chmara (ron Opus1 COM) (1 replies) Re: PHP security (or the lack thereof) Jul 05 2006 04:17PM Dan Falconer (dan avsupport com) (1 replies) Re: PHP security (or the lack thereof) Jun 19 2006 05:07PM Neil Neely (neil frii com) (1 replies) RE: [lists] Re: PHP security (or the lack thereof) Jul 16 2006 11:26PM Curt Purdy (purdy tecman com) Re: PHP security (or the lack thereof) Jun 17 2006 01:50AM Jose Nazario (jose monkey org) (1 replies) Re: PHP security (or the lack thereof) Jun 17 2006 06:06PM Geo. (geoincidents nls net) (2 replies) Re: PHP security (or the lack thereof) Jun 20 2006 04:54AM kicktd (cooljay1804ml bellsouth net) (1 replies) Re: PHP security (or the lack thereof) Jun 16 2006 11:06PM Bojan Zdrnja (bojan zdrnja gmail com) (1 replies) Re: PHP security (or the lack thereof) Jun 17 2006 05:08PM Jessica Hope (jessicasaulhope googlemail com) |
|
Privacy Statement |
> I think when evaluating how dangerous something is to the internet you have
> to look at how it's used and how much risk that creates.
>
> For example, allowing users to upload and execute any C executable file to a
> public web server can prove to be quite dangerous.
>
> I think the same can be said for allowing PHP on a public web server, you
> have just allowed anyone with a website to compromise the entire machine.
>
Plugging my own product, but what the hell, it is open source :)
AppArmor http://opensuse.org/Apparmor is an application security
container technology for Linux. It lets you create application profiles
(policies) that define the files that the application can read, write,
and execute. It lets you do this per-application, so you actually could
allow users to upload arbitrary C/binary programs and expect them to
behave as you specified. It provides an inheritance model so that you
can't escape from this jail by exec'ing something fun: the child is
controlled by policy too.
And for confining PHP (and PERL code run by mod_perl, and any other
language interpreted in-place by Apache) AppArmor provides a change_hat
API call and a mod_apparmor module for Apache, so that you can have
AppArmor-style profiles wrapped around individual PHP pages and mod_perl
scripts, even though they never appear in the process table.
If you find yourself between the rock of having to run some PHP or PERL
code and a hard place of not trusting that code, try confining it with
AppArmor, so that if/when the code screws up, it can only screw itself.
Crispin
--
Crispin Cowan, Ph.D. http://crispincowan.com/~crispin/
Director of Software Engineering, Novell http://novell.com
[ reply ]