• [^] # Re: Verifions mieux BIS ;-)

    Posté par . En réponse à la dépêche Le bug de Zlib touche aussi des produits Microsoft. Évalué à 6.

    Humm, désolé mais apparemment tu ne sais pas lire.
    je quote la meme phrase que toi:
    "On many systems, freeing the same memory twice will crash the application"

    comme vous insistez cette fois je vais argumenter avec une URL sur cet exellent article de phrack:
    http://www.phrack.org/phrack/57/p57-0x09(...)

    il y est expliqué les différentes implémentations de malloc/free et quels systèmes les utilises.
    il y est aussi expliqué comment en profiter pour lancer un shell sous linux et hurd.
    Je cite quelques extraits de l'article (long et tres technique, pas la peine de poster ici):


    There are only a few common malloc implementations. The most common ones
    are the System V one, implemented by AT&T, the GNU C Library implementation
    and the malloc-similar interface of the Microsoft operating systems
    (RtlHeap*).

    Here is a table of algorithms and which operating systems use them:

    Algorithm | Operating System
    ------------------------+--------------------------------------------------
    BSD kingsley | 4.4BSD, AIX (compatibility), Ultrix
    BSD phk | BSDI, FreeBSD, OpenBSD
    GNU Lib C (Doug Lea) | Hurd, Linux
    System V AT&T | Solaris, IRIX
    Yorktown | AIX (default)
    RtlHeap* | Microsoft Windows *
    ------------------------+--------------------------------------------------

    <snip>

    ell, however, exploitation is pretty straight forward now:

    <jmp-ahead, 2> <6> <4 bogus> <nop> <shellcode> |
    \xff\xff\xff\xfc \xff\xff\xff\xfc <retloc - 12> <retaddr>



    CQFD