home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.security.misc
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!honte.uleth.ca!sigma.uleth.ca!senetza
- From: senetza@sigma.uleth.ca (Len Senetza)
- Subject: Re: Unix Viruses. Are there any??
- Message-ID: <senetza.727648754@honte>
- Sender: news@honte.uleth.ca (News System)
- Organization: University of Lethbridge
- References: <1993Jan15.090426.12195@unix.brighton.ac.uk> <17988@umd5.umd.edu>
- Date: 21 Jan 93 20:39:14 GMT
- Lines: 40
-
- In <17988@umd5.umd.edu> matthews@oberon.umd.edu (Mike Matthews) writes:
- >A virus spreads itself around by latching in to valid programs. I've always
- >believed that Unix's memory protection and file access controls would
- >prohibit a true virus; nobody's been able to convince me otherwise yet.
-
- so, get the source for something like ls (it's on ftp.uu.net). then
- modify it so that it attaches a binary file which does x (x can be
- innocuous [print a smilie on the console] or destructive [halt]) to a
- system command (mkdir) which is installed suid. then, go talk to the
- sysadmin and tell them that there is something wrong with your
- directory. when they cd to it and do an 'ls' (your version), bango --
- virus. this 'x' thing that the binary file does can also include
- copying itself to other programs.
-
- so, if root executes your ls, then x is attached to some program in the
- system. have your x only do it to programs which are suid. then it's
- all over the place; memory protection and file access controls fail
- here.
-
- this assumes that root has . in its path, and how many root accounts
- out there do?
-
- >------
- >Mike Matthews, matthews@oberon.umd.edu (NeXTmail accepted)
- >------
- >I was gratified to be able to answer promptly, and I did. I said I
- >didn't know.
- > -- Mark Twain
-
-
-
- --
- +-----------------------------------------------------------------------+
- | Leonard Senetza | E-Mail: senetza@sigma.uleth.ca |
- | Academic Consultant | Phone: 403-329-5162 |
- | University of Lethbridge | FAX: 403-382-7108 |
- | Lethbridge, Alberta |-----------------------------------------|
- | Canada, eh? | Disclaimer: Why should I tell _them_? |
- | T1K 3M4 | What they don't know, can't fire me. |
- +-----------------------------------------------------------------------+
-