Re: DEP on Windows XP SP2
nicolas.ruff_at_gmail.com
Date: 07/05/05
- Previous message: David LeBlanc: "RE: WSUS/Reboot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 05 Jul 2005 12:17:43 +0200 To: focus-ms@securityfocus.com
> the /gs is enabled in certain SP2 programs. The /gs compiler options allow you
> to make secure program during compilation. It protect against basic stack
> overflow. NXBit is a copy from Solar Designer, but it's implemented into the
> chipset/processor hardely. As Stackguard, PaX, the NXBit need a kernel
> upgrade. I don't really know (believe) if it's stable and you must know that
> you are not protected against high-level-overflow like the heap overflow
> exploitation by an indirect register callback.
Hello,
Just a few comments on this :
- The /GS flag indeed protects applications against buffer overflow
exploitation by making them crash on stack corruption. Most of XP SP2
has been recompiled with this flag, but it does not help 3rd party
applications in any way (unless they were also recompiled with /GS flag).
- Heap overflow protection is provided by a memory cookie introduced in
XP SP2 memory allocator. It is a system-based protection and has nothing
to do with the compiler. 3rd party applications are protected by default.
- Ret-into-libc techniques are still available (AFAIK), but not very
common on Windows systems due to their complexity.
- NX has to be supported by your processor. You have to use the CPUID
instruction to check for NX support. On my AMD Athlon 64 3000+, the
following assembly code :
MOV EAX, 0x80000001
CPUID
gives the following result :
EAX = 00000000000000000000111101001000 (0x00000F48)
EBX = 00000000000000000000000100001000 (0x00000108)
EDX = 11100001110100111111101111111111 (0xE1D3FBFF)
^
|--- NX supported
- And yes, NX breaks most applications in "AlwaysOn" mode, because most
applications are buggy - but you could not notice it thanks to the
application catching exceptions and resuming normal execution.
Regards,
- Nicolas RUFF
Computer Security Researcher at EADS-CCR
---------------------------------------------------------------------------
---------------------------------------------------------------------------
- Previous message: David LeBlanc: "RE: WSUS/Reboot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|