[UNIX] Buffer Overflow in PostgreSQL's repeat()

From: SecuriTeam (support_at_securiteam.com)
Date: 11/02/03

  • Next message: SecuriTeam: "[UNIX] Buffer Overflow in PostgreSQL's lpad() and rpad()"
    To: list@securiteam.com
    Date: 2 Nov 2003 18:01:13 +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.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      Buffer Overflow in PostgreSQL's repeat()
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.postgresql.org/> PostgreSQL is "an advanced object-relational
    database management system that supports an extended subset of the SQL
    standard, including transactions, foreign keys, subqueries, triggers,
    user-defined types and functions".

    A vulnerability in PostgreSQL's repeat() allows attacker to cause the
    program to execute arbitrary code by overflowing an internal buffer.

    DETAILS

    Vulnerable systems:
     * PostgreSQL version 7.2.0 and prior

    Upon invoking a repeat() function, a
    src/backend/utils/adt/oracle_compat.c::repeat() function will gets called
    which suffers from a buffer overflow.

    How to reproduce:
    psql> select repeat('xxx',1431655765);
    pqReadData() -- backend closed the channel unexpectedly.
            This probably means the backend terminated abnormally
            before or while processing the request.
    The connection to the server was lost. Attempting reset: Failed.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:mordred@s-mail.com> Sir
    Mordred The Traitor.

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

    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.


  • Next message: SecuriTeam: "[UNIX] Buffer Overflow in PostgreSQL's lpad() and rpad()"

    Relevant Pages

    • [TOOL] Binhex - Convert Files Generated by Xbin or Macget Into BinHex Format
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... This utility converts Mac Bin Hex files to BinHex format ... The information in this bulletin is provided "AS IS" without warranty of any kind. ...
      (Securiteam)
    • [EXPL] phpBB Remote PHP Code Execution (viewtopic.php 2)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The following exploit code utilizes a vulnerability in phpBB to cause ... This bulletin is sent to members of the SecuriTeam mailing list. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
      (Securiteam)
    • [EXPL] 3Com FTP Server Buffer Overflow (CD)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... overflow in its parsing of the 'CD' command. ... 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. ...
      (Securiteam)
    • [TOOL] Automagic SQL Injector
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Automagic SQL Injector is part of the Sec-1 Exploit Arsenal provided ... 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. ...
      (Securiteam)
    • [EXPL] phpSlash Account Hijacking (Exploit)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... An input validation flaw discovered in phpSlash can be used to gain ... AuthorSaveProfile perm can overwrite other account's preferences. ... This bulletin is sent to members of the SecuriTeam mailing list. ...
      (Securiteam)