Full Disclosure mailing list archives
Re: Exploiting buffer overflows via protected GCC
From: James Matthews <nytrokiss () gmail com>
Date: Sat, 14 Feb 2009 23:47:35 +0200
I would recommend doing the following things. 1. Ask on the Ubuntu GCC list what protection is implemented. (Or just look at the source) 2. Use GCC to see where the execution is being redirected and so you can have a better visual of whats going on. 3. Are you sure the stack is executable? On Sat, Feb 14, 2009 at 12:30 AM, Marcus Meissner <meissner () suse de> wrote:
On Fri, Feb 13, 2009 at 11:50:11AM -0500, Jason Starks wrote:I came across a problem that I am sure many security researchers haveseenbefore: jason@uboo:~$ cat bof.c #include <stdio.h> #include <string.h> int main() { char buf[512]; memset(buf, 'A', 528); return 0; } jason@uboo:~$ jason@uboo:~$ ./bof *** stack smashing detected ***: ./bof terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7f08548] jason@uboo:~$ I have googled my brains out for a solution, but all I have gathered isthatmy Ubuntu's gcc is compiled with SSP and everytime I try to overwrite the return address it also overwrites the canary's value, and triggers a stopinthe program. I've disassembled it and anybody who can help me probably doesn't need me to explain much more, but I would like to know a way togetthis. There seems to be some people on this list who may know somethingonhow to exploit on *nix systems with this protection enabled. I do not want to just disable the protection and exploit it normally, Iwant Perhaps you should learn first exactly _what_ caught your buffer overflow. Hint: It was not SSP aka -fstack-protector. Ciao, Marcus _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
-- http://www.goldwatches.com/ http://www.jewelerslounge.com/
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
Current thread:
- Exploiting buffer overflows via protected GCC Jason Starks (Feb 13)
- Re: Exploiting buffer overflows via protected GCC Valdis . Kletnieks (Feb 13)
- Re: Exploiting buffer overflows via protected GCC ArcSighter Elite (Feb 13)
- Re: Exploiting buffer overflows via protected GCC Jubei Trippataka (Feb 16)
- Re: Exploiting buffer overflows via protected GCC Valdis . Kletnieks (Feb 17)
- Message not available
- Re: Exploiting buffer overflows via protected GCC James Matthews (Feb 14)
- Re: Exploiting buffer overflows via protected GCC ArcSighter Elite (Feb 16)
- Re: Exploiting buffer overflows via protected GCC Marcus Meissner (Feb 16)
- Re: Exploiting buffer overflows via protected GCC James Matthews (Feb 14)
- Re: Exploiting buffer overflows via protected GCC Valdis . Kletnieks (Feb 13)