Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 11-28-2012, 01:54 PM   #1
Registered: Jan 2012
Posts: 112
Blog Entries: 1

Rep: Reputation: Disabled
Mysterious symlink

I had a chat with a guy on Stackoverflow:

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
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,884

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
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.


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 > Forums > Linux Forums > Linux - Security

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

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