[Full-Disclosure] Multiple remote & local buffer overflows discovered in Drcatd

From: Khan Shirani (khan_shirani_at_yahoo.com)
Date: 06/25/04

  • Next message: http-equiv_at_excite.com: "[Full-Disclosure] Microsoft and Security"
    To: full-disclosure@lists.netsys.com
    Date: Fri, 25 Jun 2004 10:39:31 -0700 (PDT)

    Zone-h Security Advisory
    Date of discovery : 24 june 2004
    Date of release : 25 june 2004
    Bug found by Khan Shirani

    Software : Drcatd
    Bugs : Buffer Overflows , Remote and local (multiple)
    Risk : low
    Platform : *nix

    Dr.Cat (Dave's Remote Cat) concatenates a file on a remote Linux host that is running the
    Dr.Cat daemon (drcatd) to stdout in the clients terminal. It authenticates users versus
    the standard shadow password authentication facility and spawns a process with that users
    permissions to attempt to access the requested file

    Muliple local buffer overflows have been discovered . In addition to this , remote exploitation
    is also possible due to a lack of boundry checking of input once a user has been authenticated.
    The vulnerability exists when the remote user sends an overly long filename that doesnt exist.
    This is handled by an sprintf() call which is where the overflow will occur
    vulnerable code:
    sprintf(fdne_msg, "%s - File Does Not Exist", buf);
    sprintf(fd_msg, "%s - File Does Not Exist\n", buf);
    len = sizeof(fd_msg);
    local_send(new_fd, fd_msg, len);
    NOTE: Due to the exit(1) from the above snippet, exploitation of this vulnerability is not possible within x86 arche's.

    Vendor Notice:
    The vendor has been notified via <dave@joltedweb.com>

    Contents may not be altered without notification to original author
    permission is granted to reproduce this advisory on public databases.
    and all the zone-h staff.

    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around

    Full-Disclosure - We believe in it.
    Charter: http://lists.netsys.com/full-disclosure-charter.html

  • Next message: http-equiv_at_excite.com: "[Full-Disclosure] Microsoft and Security"