LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-12-2015, 06:49 AM   #1
mkilani
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Rep: Reputation: Disabled
Security Breaches Via Programming Languages


Hi guys,

I have a server with multiple websites on it. Currently the websites function with php and I've secured it with fcgi by making each website function with a specific user. However I'm asked to install other languages like perl, ruby and python. I'm afraid users of the websites might abuse these languages to access and manipulate other things on the server as I do not have any experience with them. Are they safe to install? Do I need to do something similar to fcgi to secure them and limit them to specific users for each vhost? I appreciate the help.

Last edited by mkilani; 11-12-2015 at 08:01 AM.
 
Old 11-12-2015, 03:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Separation of privilege is one of the foundations of UNIX architecture. You did well isolating each website by assigning them their own unprivileged user account. And indeed you should not treat other interpreters differently.
 
Old 11-13-2015, 05:57 AM   #3
mkilani
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot for the answer. May you point me to tutorials for doing this in for Perl, Ruby and Python? I'm afraid I have absolutely no experience with them and not sure where to begin. I can install them on the server, but not sure how to limit privileges to users as in the case of PHP's suexec and fcgi.

Thanks again, I appreciate it.
 
Old 11-16-2015, 11:26 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
"A programming language" ... any programming language ... "is merely a tool." It is merely a different way of asking a digital computer to do something. And, therefore, it is not a source of vulnerability.

The only "source of vulnerability" is: "does the computer, when asked, do it?"

"Security is a process." Furthermore, it is very much a Chess game between two opponents, in which the computer is nothing more than the chessboard.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 6 things we learned from this year's security breaches LXer Syndicated Linux News 0 11-05-2014 04:31 AM
LXer: Thinking like a hacker reduces security breaches LXer Syndicated Linux News 0 04-02-2014 04:42 PM
What programming languages do you know? ugoff General 24 12-13-2004 06:01 PM
security question regarding programming languages another2 Linux - Security 3 02-14-2004 07:14 AM
Major security breaches Erixooon Linux - Security 1 02-01-2004 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration