Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 42 guests and 2 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow [Question] Access to my FTP files without username?
EH-Net
May 22, 2013, 04:10:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [Question] Access to my FTP files without username?  (Read 3828 times)
0 Members and 1 Guest are viewing this topic.
colb
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: September 05, 2011, 12:04:18 PM »

This is just a general question, I'm not asking for a "How To" guide or anything like that. I run a website and I have been known to host files on the FTP for a very small group of people. In the near future, I'll be uploading some files that I want to restrict the access to (only legitimate users can access).

So my question is, if I disable anonymous users, is it possible for someone to download the file through my FTP without a username and password? If so, I will hold off on uploading until I find something more secure. If brute force is the only way they can access it, I may take my chances.


Again, I'm not looking for answers such as "Yes you could do it by ____ and ____." It's basically a yes or no question.
Logged
TheXero
Full Member
***
Offline Offline

Posts: 112


Try Harder!


View Profile WWW
« Reply #1 on: September 05, 2011, 02:05:08 PM »

Have a look at SFTP, you need to set up SSH though.

Or look at TFTP
« Last Edit: September 05, 2011, 02:29:47 PM by TheXero » Logged

cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #2 on: September 05, 2011, 05:17:53 PM »

Also, make sure the ftp server you use doesn't have any known exploits. Search exploit-db.com, securityfocus.com, packetstorm.com and google.
Logged

MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #3 on: September 05, 2011, 05:37:21 PM »

I'd go with SFTP over SSH as TheXero said. You can use "keys" instead of passwords then, but you have to set up users of course. Without any authentication controls of who people are, how do you expect people to be authenticated to download and upload files?  Smiley

You can either
A: Try to keep it secret without any authentication (bad, unless you only use it for files and check daily if anyone outside the group is using the ftp server.)
B: Use a secure method using e.g., keys instead of passwords.

Option B, is probably your best shot  Wink
Logged

I'm an InterN0T'er
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #4 on: September 05, 2011, 11:20:08 PM »

Or to have real fun look up how to do FTP + two factor authentication. Of curse I'd prefer seeing more people using either SFTP (SSH based) or FTPS (SSL based).

Mainly running ftp without some form of security is going to leak the usernames and passwords all over the net.
Logged

OSWP, Sec+
3xban
Hero Member
*****
Offline Offline

Posts: 608


View Profile WWW
« Reply #5 on: September 06, 2011, 09:52:54 AM »

Definitely another vote for SFTP, too many problems with FTP and like they all said you can use keys with SFTP.  I currently do this with my AWS instance for both remote managment and SFTP. 

It also depends on the folks who will be accessing your FTP site.  If they are not technologically savy, you may want to stick with the traditional username/password.  If they have a support person in place you can work with them to setup SFTP with keys.
Logged

Certs: GCWN
(@)Dewser
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #6 on: September 06, 2011, 12:34:39 PM »

If they are not technologically savy, you may want to stick with the traditional username/password.  If they have a support person in place you can work with them to setup SFTP with keys.

I'd recommend that instead of just setting them up with a user and password, because they may not be technologically savvy, that he should create an installer / script that sets everything up for them  Smiley

It wouldn't take that long, but using unique keys could be a bit problematic to automate (if there's many users), though not impossible (but if you do, make damn sure you do it in a secure way hehe  Grin )

Do NOT forget to disable usage of the SSH shell / terminal (except SFTP) functionality in case you go with this, because if a user is compromised, these credentials could be used to log into an interactive terminal, where remote code execution on the server would be possible.

If they do need (SSH) terminal access, I suggest they of course run with least privileges possible and are not able to sudo unless there is a good reason. Perhaps even jail the users to their own directory without the possibility of symlinking out of there  Smiley

Just a few good advises you could perhaps use, it's up to you in the end of course  Wink
Logged

I'm an InterN0T'er
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.079 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.