[NEWS] Oracle TO_TIMESTAMP_TZ Remote System Buffer Overrun

From: support@securiteam.com
Date: 02/17/03

  • Next message: support@securiteam.com: "[NEWS] Oracle Unauthenticated Remote System Compromise"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 17 Feb 2003 22:12:28 +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

    Beyond Security would like to welcome Tiscali World Online
    to our service provider team.
    For more info on their service offering IP-Secure,
    please visit http://www.worldonline.co.za/services/work_ip.asp
    - - - - - - - - -

      Oracle TO_TIMESTAMP_TZ Remote System Buffer Overrun
    ------------------------------------------------------------------------

    SUMMARY

    Oracle's database server contains functions for use within queries. The
    TO_TIMESTAMP_TZ function exists to convert a string into a timestamp with
    a time zone datatype. This function contains exploitable buffer overflow
    vulnerability.

    DETAILS

    Vulnerable systems:
     * All platforms; Oracle9i Database Release 2, 9i Release 1, 8i, 8.1.7,
    8.0.6

    There is a remotely exploitable buffer overflow vulnerability in the
    TO_TIMESTAMP_TZ function. A normal statement would look like the
    following, converting a character string to a value of timestamp with time
    zone:

    SELECT TO_TIMESTAMP_TZ('2003-02-016 12:00:00 -8:00','YYYY-MM-DD HH:MI:SS
    TZH:TZM') FROM DUAL;

    By supplying a long character string for the second parameter an attacker,
    can overwrite a saved return address on the stack of Oracle process.
    Before this issue can be exploited an attacker must be able to log on to
    the database server with a valid user ID and password, but as the
    TO_TIMESTAMP_TZ() function can be executed by PUBLIC by default any user
    of the system can gain control. Any arbitrary code supplied by an attacker
    would execute with the same privileges as the user running the service;
    this account is typically "Oracle" on Linux/UNIX based platforms and Local
    System on Windows based operating systems such as NT/2000/XP. As such,
    this allows for a complete compromise of the data stored in the database
    and possibly a complete compromise of the operating system.

    Fix Information:
    NGSSoftware alerted Oracle to this vulnerability on 30 September 2002 and
    Oracle has produced a patch that is available from
     <http://otn.oracle.com/deploy/security/pdf/2003alert50.pdf>
    http://otn.oracle.com/deploy/security/pdf/2003alert50.pdf

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:nisr@nextgenss.com>
    NGSSoftware Insight Security Research.

    ========================================

    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

    ====================
    ====================

    DISCLAIMER:
    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.



    Relevant Pages