Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-29-2007, 04:33 PM
|
#1
|
|
Member
Registered: Mar 2005
Posts: 34
Rep:
|
Question about LINK security.
Hey,
I'm doing a presentation on Linux security and I was wondering if it was possible to change a link to point to a different file without destroying the link.
My question stems from the idea that a user could find a binary that is globally writable and modify it to do his dirty work as root user. For this presentation, I'm setting up my own Linux box to hack it to pieces. What I plan to do is add a group-writable path to the global path and then demonstrate how this can be exploited.
I was also wondering if links were secure if they're pointing to a file that is not group-writable. I've noticed on our school's system that all the links available in the path are globally 'rwx' though the files they point to are not. I'm guessing that means the files are still secure, but I would just like clarification, explanation and or a good reference to back up this claim.
Thanks in advance for any reply!
|
|
|
|
04-29-2007, 06:04 PM
|
#2
|
|
Senior Member
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757
Rep:
|
Quote:
|
... I was wondering if it was possible to change a link to point to a different file without destroying the link.
|
If you change a link to point to a different file, then yes the existing link is destroyed. On the other hand, you can have several links that point to the same file. An alias of a command is probably what your thinking about, but the correct file permissions are needed to create the alias.
http://en.wikipedia.org/wiki/Alias_(Unix_shell)
Quote:
|
My question stems from the idea that a user could find a binary that is globally writable and modify it to do his dirty work as root user.
|
Security is relative: Physical access, easy/no passwords, system patches not up-to-date, misconfigured system settings/permissions, and probably the worst is social engineering.
http://www.unixtools.com/security.html
Quote:
|
... all the links available in the path are globally 'rwx' though the files they point to are not. ...
|
That is correct. The real permissions are on the target file.
http://en.wikipedia.org/wiki/Symbolic_link
|
|
|
|
|
Tags
|
access, chmod, hack, hacker, hacking, link, linux, ln, permission, root, security, symbolic  |
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:11 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|