home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / security / misc / 1815 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.security.misc
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!flipper.pvv.unit.no!agulbra
  3. From: agulbra@flipper.pvv.unit.no (Arnt Gulbrandsen)
  4. Subject: Re: anonymous FTP checklist
  5. Message-ID: <1992Nov22.021756.25285@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Organization: ProgramVareVerkstedet - UNIT
  8. References: <francis.722155745@monod> <drector.722195714@math.uci.edu>
  9. Date: Sun, 22 Nov 92 02:17:56 GMT
  10. Lines: 27
  11.  
  12. In article <drector.722195714@math.uci.edu> drector@math.uci.edu (David Rector) writes:
  13. ...
  14. >If you find it necessary to have an "incoming" directory, that is a
  15. >directory with write privileges, be sure to check it regularly for
  16. >unwanted material, or you might find yourself playing host to an
  17. >unwanted---or even illegal---bulletin board.  A favorite trick of
  18. >bb creators is to hide their files from the ls command by prefixing the
  19. >file names with periods or other unprintable characters.  Use the
  20. >-a option to ls, or use du, to search for unwanted files.
  21. >
  22. >I need hardly add that I am a recent victim of this scam.  I forgot
  23. >about the -a option.
  24.  
  25. I, too, once had 100 FTP logins in 24 hours... my advice is to patch
  26. the ftp daemon so files uploaded by guests have to be chown'd or cp'd
  27. before they can be downloaded by guests.
  28.  
  29. The change is easy enough, you insert something like this immediately
  30. after the check for special files (search for 'plain file' in ftpd.c):
  31.     if ((guest)&&(st.st_uid==(getpwnam("ftp")->pw_uid))) {
  32.         reply(550, "%s: not retrievable by guests.", name);
  33.         goto done;
  34.     }
  35. This may not be perfect C, I typed it from memory, but you get the
  36. drift.
  37.  
  38. --Arnt
  39.