Path: alphanet.ch!imp.ch!news.imp.ch!rill.news.pipex.net!pipex!news-peer-east.sprintlink.net!news.sprintlink.net!nntp.abs.net!feed2.news.erols.com!erols!howland.erols.net!cs.utexas.edu!utnut!utcsri!dgp.toronto.edu!flaps Newsgroups: alt.security,comp.security.misc,comp.security.unix From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: comp.security.unix and comp.security.misc frequently asked questions X-Nntp-Posting-Host: explorer.dgp.toronto.edu Message-ID: <1998May28.122113.29516@jarvis.cs.toronto.edu> Followup-To: comp.security.unix,comp.security.misc Summary: VERY frequently asked q's with straightforward answers X-Newsreader: NN version 6.5.0 #3 (NOV) Date: 28 May 98 16:21:14 GMT Lines: 209 Xref: alphanet.ch comp.security.misc:29048 comp.security.unix:26950 Archive-name: comp-security-unix Posting-frequency: monthly This is the early stages of a faq file for comp.security.misc and comp.security.unix. It is cross-posted to alt.security because I think it will be useful there, too. Yes, I know that syntactically, these are not all "questions". ------------------------------ Subject: Table of contents - This faq - Can anyone here tell me how to exploit the {whatever} bug? or Can anyone here tell me how to break in to my ISP? - Is there a newer version of cops/tripwire/satan? - Tripwire fails the self-test. - Cops won't "make" in some recent versions of linux. - SATAN doesn't display right in my web browser; it asks me to save the file. - How do I find all setuid and setgid files? - I can't get .rhosts/.shosts to work with ssh. (Note: there is a newsgroup comp.security.ssh) ------------------------------ Subject: This faq This is not supposed to be a statement of group consensus. This is simply supposed to be a few VERY frequently asked questions and their answers, so that we can snidely say "see the faq" when people ask them. The answers supplied are supposed to be completely uncontroversial amongst people who know what they're talking about. My first answer might be a bit borderline in this respect but I don't recall ever having seen a contrary opinion here. Contributions of questions are welcome (with or without answers); however, the idea is that they are supposed to be things we see very frequently, and things which have straightforward answers. If your answer is long, it might not belong in this document, at least as I see the purpose of this document. For example, it is intentional that this document doesn't contain firewall recommendations, even though that's a frequently-asked question here. Thanks to Juan Gallego and Lamont Granquist for additional suggestions re finding setuid files. Disclaimer: The posting of this file is not to be construed as a commitment to provide free consulting to people I don't know. Post your questions to the newsgroup and I might answer them there, or someone else might do it better. (Although if you say "please send e-mail copies", I'm going to ignore your message.) Disclaimer 2: There ARE errors in this file, but at the time of writing, I didn't know what they were. (If I knew, I would have fixed them.) This document is offered on an "as-is" basis, no warranty is implied, blah blah blah. ------------------------------ Subject: Can anyone here tell me how to exploit the {whatever} bug? or Can anyone here tell me how to break in to my ISP? No. We're security professionals. We try to secure systems. We think that securing systems and fixing bugs are more intellectual activities than running a program which someone else wrote which you don't understand. You should only attempt "penetration testing" of a system with the consent of its administrators and/or owners. They will only be interested in your services if you know something. You can start your education by learning some general computer science and computer programming, and by reading computer security textbooks and/or newsgroups. ------------------------------ Subject: Is there a newer version of cops/tripwire/satan? No. ------------------------------ Subject: Tripwire fails the self-test. You have to slow it down (just the self-test scripts, not the tripwire binary itself). The test scripts create and then update a file, and then detect that the timestamp has not changed. Because it hasn't, because this all happens within a second on modern machines. This happens in a few places. If a second-boundary happens to be crossed during this brief interval, then that particular test will succeed, but another one will fail soon. In the tests directory, edit 3 of the 4 files named test.*.sh: in test.escape.sh, add "sleep 1" on line 46 (in the cert version), just before running tripwire; in inter and update, un-comment-out the "sleep 1". If this isn't good enough, use "sleep 2". See ftp://coast.cs.purdue.edu/pub/COAST/Tripwire/README-fix-Oct.1996 ------------------------------ Subject: Cops won't "make" in some recent versions of linux. Remove the '#' from "BRAINDEADFLAGS" in the makefile. (This adds a "-lcrypt" to the compilation of pass.c.) ------------------------------ Subject: SATAN doesn't display right in my web browser; it asks me to save the file. Newer web browsers seem to use different algorithms in guessing mime types when the web server doesn't supply it. SATAN does not comply with the http protocol in this one respect, but it's easily fixed. Add, in perl/html.pl, in process_html_request before it sends anything (actually I see I put it just before the "Make sure they gave us the right magic number"): # # ajr addition # print CLIENT <