Posted on

VU#307144: mingw-w64 by default produces executables that opt in to ASLR, but are not compatible with ASLR

ASLR is an exploit mitigation technique used by modern Windows platforms. For ASLR to function, Windows executables must contain a relocations table. Despite containing the “Dynamic base” PE header, which indicates ASLR compatibility, Windows executables produced by mingw-w64 have the relocations table stripped from them by default. This means that executables produced by mingw-w64 are vulnerable to return-oriented programming (ROP) attacks.

Leave a Reply

Your email address will not be published. Required fields are marked *