#40746 [NEW]: PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40746 [NEW]: PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow

    From: youza at post dot cz
    Operating system: Windows
    PHP version: 4.4.6
    PHP Bug Type: MySQL related
    Bug description: PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow

    Description:
    ------------
    PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow and
    safe_mode bypass


    Reproduce code:
    ---------------
    See
    [url]http://www.securityfocus.com/archive/1/462010/30/0/threaded[/url]
    or
    original url:
    [url]http://retrogod.altervista.org/php_446_mssql_connect_bof.html[/url]


    --
    Edit bug report at [url]http://bugs.php.net/?id=40746&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40746&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40746&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40746&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40746&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40746&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40746&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40746&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40746&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40746&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40746&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40746&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40746&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40746&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40746&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40746&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40746&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40746&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40746&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40746&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40746&r=mysqlcfg[/url]
    youza at post dot cz Guest

  2. Similar Questions and Discussions

    1. #38687 [Asn->Csd]: Possible buffer overflow in stream_socket_client() when using "bindto" + IPv6
      ID: 38687 Updated by: pollita@php.net Reported By: christian dot schuster at s2000 dot tu-chemnitz dot de -Status: ...
    2. Free Buffer Overflow Protection Software for Windows 2000/XP/2003 Systems
      BufferShield is security software, capable of detecting and preventing attempts to execute code on the stack and the heap memory area, in order to...
    3. buffer overflow
      I have been programming with Perl for a year now and supporting my own webserver but with all of MS's security issues I was wondering if someone...
    4. #25217 [NEW]: calling ob_gzhandler after modified buffer in ob handler, return origin buffer
      From: Xuefer at 21cn dot com Operating system: win PHP version: 4.3.3RC4 PHP Bug Type: Output Control Bug description: ...
    5. #20467 [Com]: Buffer overflow returning binary
      ID: 20467 Comment by: r dot vanicek at seznam dot cz Reported By: freddy77 at angelfire dot com Status: Closed...
  3. #2

    Default #40746 [Opn->Asn]: PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow

    ID: 40746
    Updated by: [email]tony2001@php.net[/email]
    Reported By: youza at post dot cz
    -Status: Open
    +Status: Assigned
    -Bug Type: MySQL related
    +Bug Type: MSSQL related
    Operating System: Windows
    PHP Version: 4.4.6
    -Assigned To:
    +Assigned To: fmk


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-07 09:45:54] youza at post dot cz

    Description:
    ------------
    PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow
    and safe_mode bypass


    Reproduce code:
    ---------------
    See
    [url]http://www.securityfocus.com/archive/1/462010/30/0/threaded[/url]
    or
    original url:
    [url]http://retrogod.altervista.org/php_446_mssql_connect_bof.html[/url]



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40746&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #40746 [Asn]: PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow

    ID: 40746
    Updated by: [email]fmk@php.net[/email]
    Reported By: youza at post dot cz
    Status: Assigned
    Bug Type: MSSQL related
    Operating System: Windows
    PHP Version: 4.4.6
    Assigned To: fmk
    New Comment:

    This is a problem with the dbopen() function in Microsofts ntdblib
    library, and not a problem within the PHP extension.

    I'll add some length checks to the host parameter for mssql_connect()
    and mssql_pconnect() to prevent this from happening.

    The problem does not exists in php_dblib.dll (the same extension
    compiled with FreeTDS version of the dblib library).



    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-07 09:45:54] youza at post dot cz

    Description:
    ------------
    PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow
    and safe_mode bypass


    Reproduce code:
    ---------------
    See
    [url]http://www.securityfocus.com/archive/1/462010/30/0/threaded[/url]
    or
    original url:
    [url]http://retrogod.altervista.org/php_446_mssql_connect_bof.html[/url]



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40746&edit=1[/url]
    fmk@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139