LinuxQuestions.org
Help answer threads with 0 replies.
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-28-2012, 01:54 PM   #1
usr345
Member
 
Registered: Jan 2012
Posts: 74
Blog Entries: 1

Rep: Reputation: Disabled
Mysterious symlink


I had a chat with a guy on Stackoverflow:

http://stackoverflow.com/questions/1...cutable-binary

Where he claims, that the hackers, have uploaded a symlink to his hosting directory and were able to access his dir from some other account on the server.

This has completely puzzled me, cause I am sure, that it's impossible to access the dir using a symlink, if you don't have sufficient rights. Does anybody know, how this could happen?
 
Old 11-28-2012, 02:52 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,536

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Symlinks do not give any additional permissions.

Sounds like the server permissions were wack. Any hosting company that allows other users to access my files should be out of business shortly. Most likely it was another customer who found out the permissions problem and exploited it. How would anybody else know to do that?

Not enough information to know what's going on for sure, but suppose the server administrators were unbelievably stupid and have a program that gets run as root in a user-writable directory. Then the hacker replaces that program with a symlink to an executable in the upload directory. Now they can upload whatever script they want and it has access to everything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] cp has mysterious ways. stf92 Linux - Newbie 2 10-07-2011 05:49 PM
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 12:14 PM
Mysterious crashes Philip87 Linux - Newbie 7 09-09-2008 08:10 AM
Mysterious disappearance catonic Linux - Hardware 2 06-16-2007 08:21 AM
Mysterious Directory Dooley Mandriva 3 07-03-2004 12:26 AM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration