Results 1 to 2 of 2

Thread: SUDO - how secure is it?

  1. #1
    Join Date
    Jan 2007
    Location
    heaven , Malaysia
    Beans
    806

    SUDO - how secure is it?

    referring to
    Code:
    http://blog.banditdefense.com/2009/02/06/sudo-install-my-rootkit/
    Before
    PHP Code:
    m0rebel@ubuntu:~$ which sudo
    /usr/bin/sudo
    m0rebel
    @ubuntu:~$ ls -/usr/bin/sudo
    -rwsr-xr-x 1 root root 115136 2008-09-01 06:17 /usr/bin/sudo 
    somebody run script --->

    AFteR


    PHP Code:
    m0rebel@ubuntu:~$ which sudo
    /home/m0rebel/.mozilla/.bin/sudo 
    should it be fixed ?
    もう誰かのためじゃなくて 自分のために笑っていいよ
    ~ Please do mark as resolved thread if your problem is solved,thanks~

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: SUDO - how secure is it?

    I closed this thread as this type of issue has been discussed many many times.

    That blog is noting more then social engineering and the fix is education. There is no linux code to patch. If a user runs an arbitrary script from an untrusted source as root the system can be cracked.

    The security issues are :

    1. Social engineering. Do not install applications from un trusted sources , problem solved. The entire exploit on that blog requires that you, the user, either install the said script or you yourself modify the path.

    Installing or running code from untrusted sources is nothing more then running arbitrary code as root.

    2. Escalation of privileges. Now that you have run a bad script , the intruder then becomes root.

    This is bait and switch. If you ran arbitrary code, in step 1, you might as well run passwd and set a root password, what about wget to download a rootkit, or curl, or how about if the malignant script just installs a key logger ? You see, an intruder can target almost anything from sudo to su so the only protection is not to run code from untrusted sources.

    The real problem in that blog is therefore not sudo, but social engineering.

    The fix is simple.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •