Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Yet Another Security Question

by Xxaxx (Monk)
on Jun 24, 2001 at 02:39 UTC ( #91013=note: print w/replies, xml ) Need Help??


in reply to Yet Another Security Question

There is a method in *nix/Apache to run the server with a suexec so that the server is running as the user of the website.

This also has the effect of limiting the scope of your scripts to effecting only those files which the user has write access to. Thus you don't have the problem of any user with group "nobody" effecting files written by another user also under the group "nobody".

This does mean you are still subject to the problem mentioned above of any files written by the website user will be at the mercy of scripts running from the website.

As an aside, I like the looks of cgiwrap mentioned above.

If you are concerned about other idiots on the same box as yours causing damage, one solution is to get a colocated server thus removing the other idiots on the box and narrowing the scope of idiots to just one. ;-)

If the project is worth the $300 to $500 per month of most colocated servers this might be an option.

Hope this helps
Claude

p.s. A word to wise when creating script which directly modify files on your website HTTP_REFERER is not a trusted field. Paranoia is your friend. Taint is a must.

Replies are listed 'Best First'.
Re: Re: Yet Another Security Question
by Stamp_Guy (Monk) on Jun 24, 2001 at 04:06 UTC
    Top of each script I write looks like this:
    #!/usr/bin/perl -wT use strict;

    :) This idiot doesn't have near that type of cash for this type of job. I don't have to worry about other idiots on the box either though... Thanks Claude...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://91013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-12-04 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?