LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2012, 04:22 AM   #1
WideloaD
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
FTP chroot_local_user Security implications


On Ubuntu Server 9.10 (legecy system) I have setup "vsftpd"

This is simply to allow clients to FTP stuff to their webserver without me having to do it for them.

I have created a noshell user with a home directory pointing to thier webserver root.

I have set the uploaded files flag to change permissions to the webserver user on upload and I have limited them to only browse their home directory using the chroot_local_user.

This part has a security warning and I fail to see what the problem is - several sites go on about the simplicity of jail breaking but surely without this set the user could stomp all over the file system anyway?

My Question is; is it better to have this than not have this set? I trust my users and the passwords are strong.

And... Is it better to use the "chroot_list_enable" rather than the blanket "chroot_local_user"?

In the face of this I would much rather have a list that says "ONLY ALLOW THE FOLLOWING USERS TO FTP IN".

Thanks
Paul

Last edited by WideloaD; 03-27-2012 at 04:23 AM.
 
Old 03-28-2012, 07:21 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
Quote:
Originally Posted by WideloaD View Post
is it better to have this than not have this set?
In short: yes but.
* Yes because even if FTP credentials would be leeched (not that uncommon for users running A Certain Other OS) it would not grant the user rights to perform system recon.


Quote:
Originally Posted by WideloaD View Post
I trust my users and the passwords are strong.
In turn I say there is no compelling reason to trust unprivileged users by default.
* Yes but be aware chrooting is part of system security but does not constitute system hardening, there's more required.
* Yes but be aware it does not prevent a user uploading any file and having Perl or PHP execute it. Examples: running scripts involving .htaccess modification, loading crontabs, MySQL injection, local or remote file inclusion and such due to running vulnerable applications or plugins in the web application stack. That's why keeping up to date, auditing and proper system hardening are important.


Quote:
Originally Posted by WideloaD View Post
And... Is it better to use the "chroot_list_enable" rather than the blanket "chroot_local_user"?
It's the choice of chrooting all users versus chrooting a list of users. A choice for the first option obviously ensures everyone is automagically chrooted so no newly added account need to be added to any list.


Quote:
Originally Posted by WideloaD View Post
In the face of this I would much rather have a list that says "ONLY ALLOW THE FOLLOWING USERS TO FTP IN".
Using Vsftpd with a PAM stack you can use the listfile module to create a list of allowed local user accounts.
 
  


Reply

Tags
ftpd, security



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
2 OEL 4.8 32 bit servers cannot ftp to each other using security but anon ftp works. alexsdba Linux - Server 5 11-02-2010 01:03 PM
Security implications for Wear-Leveling of Hard Disks Completely Clueless Linux - Security 9 03-17-2010 11:03 AM
vsftpd and chroot_local_user / issue with linked directory blizunt7 Linux - Security 3 08-20-2007 11:18 AM
firefox under wine - any security implications? Phrenchax Linux - Security 3 08-12-2007 07:27 AM
vsftpd - chroot_local_user=YES is not working madmike_5150 Ubuntu 9 05-24-2007 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:51 AM.

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