- Create Account

Any Security Issues?

Forums > Forum Help > Any Security Issues?
Author
Message

1) Jon Lloyd Group: Guests
IP: 65.95.--.--
Hi Angus,
   Great script... as always.

   I  was wondering what security issues I might need to worry about. The various permissions are of immediate concern but there may be other items to consider.

Any comments you could make?

Thanks,
    Jon  Lloyd

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
What kind of security issues? As in users getting/editing forum data they shouldn't (mostly an annoyance), or login access to the webserver itself (potentiall very serious)?

Either way I'm not aware of any issues with the script at present. That's not to say there is a guarantee that it's perfect though; no software is.

- Angus.

3) Jon Lloyd Group: Guests
IP: 216.209.--.--
I was thinking about the serious access of the web site if I've opened up the permissions on the various script files too much

Jon

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
There's always that risk with CGI scripts. I've tried to avoid doing any stupid things involving file I/O operations (most CGI attacks involve sending scripts hand-crafted data to read/write files it shouldn't on the server, or run commands), but you should always assume your scripts are insecure and both (a) assign them the minimal privileges necessary to operate and (b) take regular backups of your server content.

- Angus.

5) Jon Lloyd Group: Guests
IP: 216.209.--.--
Angus,
 
What  would be the minimum priveileges... or is that very server specific?

Jon Lloyd

6) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 210.54.--.--
It's server specific for the most part. For your part, you'll need execute privileges for the script itself (but no ability to read/write to the .PL file is needed), and allow it to read and write to its data folder and subfolders. The data folder should not be visible at all from a web browser, I recommend placing it somewhere outside the document root for the server.

Ideally the script won't be able to read and write anything else, but that's for the server admin to select as it involves usergroups and process privileges etc. on the server.

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.