Page 1 of 1

paxtest strcpy() returns "bad luck..."

PostPosted: Fri Jul 06, 2007 4:27 am
by cpruefer
if i do a "paxtest kiddie" or "paxtest blackhat"
on i386 (amd athlon-xp)

i get result:

strcpy() bad luck, try different compiler settings

seems like paxtest compiled wrong?

should this test work to ensure pax working correctly?

Re: paxtest strcpy() returns "bad luck..."

PostPosted: Sat Jul 07, 2007 6:56 pm
by PaX Team
cpruefer wrote:if i do a "paxtest kiddie" or "paxtest blackhat"
on i386 (amd athlon-xp)

i get result:

strcpy() bad luck, try different compiler settings

seems like paxtest compiled wrong?
what paxtest version is this? i think the latest from the PaX test directory shouldn't produce this on i386.
should this test work to ensure pax working correctly?
the return-to-libc tests are supposed to fail, so you shouldn't lose any sleep over them anyway.

PostPosted: Mon Jul 09, 2007 1:13 am
by cpruefer
what paxtest version is this? i think the latest from the PaX test directory shouldn't produce this on i386.

its 0.9.6 (gentoo 2006.1 hardened emerged)...
i will try compile the lastest from source and retest...

paxtest

PostPosted: Mon Jul 09, 2007 2:29 am
by cpruefer
with paxtest-0.9.7-pre4

EVERYTHING is FINE!!!

now i get a "stack smashing detected" on both strcpy, memcpy tests...

paxteam, you did produce a very satisfied "customer" 8)
when it ever should happen that i have money, be sure to receive a donation...

just one remark: with makefile for gentoo building breaks

make generic works...

Re: paxtest

PostPosted: Sun Jul 15, 2007 4:31 am
by PaX Team
cpruefer wrote:with paxtest-0.9.7-pre4

EVERYTHING is FINE!!!

now i get a "stack smashing detected" on both strcpy, memcpy tests...
that's actually a bug in the makefile, ssp is supposed to be disabled and the tests should show vulnerability (remember that paxtest tests, well, PaX, not other solutions and we have no deterministic protection against ret2libc attacks yet).
just one remark: with makefile for gentoo building breaks

make generic works...
the makefiles are sort of messy, fixing them is on the ever-growing todo list...