Antwort: Openwebmail 1.71 remote root compromise

From: Stephan Sachweh (Stephan.Sachweh@pallas.com)
Date: 12/23/02

  • Next message: jrodriga@retevision.es: "Proxy vulnerability in TrendMicro InterScan-VirusWall V3.6"
    To: bugtraq@securityfocus.com
    From: "Stephan Sachweh" <Stephan.Sachweh@pallas.com>
    Date: Mon, 23 Dec 2002 01:29:50 +0100
    
    

    On 18.12.2002 18:37:59 Dmitry Guyvoronsky wrote:

    > Software : Openwebmail (http://openwebmail.org)
    > Version : ?.?? -> 1.71 (current)
    > Type : Arbitrary commands execution
    > Remote : yes
    > Root : yes (!!!)
    > Date : December 18, 2002

    > IV. RECOMENDATIONS
    >
    > Temporary disable using of openwebmail until patch will be released by
    the
    > vendor
    > or fix openwebmail-shared.pl, changing
    >
    > - ---
    > $loginname =~ s/\-session\-0.*$//; # Grab loginname from sessionid
    > - ---
    >
    > into
    >
    > - ---
    > $loginname =~ s/\-session\-0.*$//; # Grab loginname from sessionid
    > $loginname =~ s/[\.\/\;\|\'\"\`\&]//g;
    > - ---

    This Fix does not work if loginname includes the internet domain name (the
    dotīs disapear).

    Change into:
    $loginname =~ s/\-session\-0.*$//; # Grab loginname from sessionid
    $loginname =~ s/[\/\;\|\'\"\`\&]//g;
    $loginname =~ s/\.\.//g;

    Freundliche Gruesse / Best Regards

    Stephan Sachweh
    Abteilungsleiter Security Operations
    --------------------------------------------------------------------
    //// pallas / A Member of the ExperTeam Group
    Pallas GmbH / Emil-Figge-Str. 85 / 44227 Dortmund / Germany
    Stephan.Sachweh@pallas.com / www.pallas.com
    Tel +49-231-9704-221 / Fax +49-231-9704-609 / Mobile +49-173-5490754
    --------------------------------------------------------------------



    Relevant Pages

    • Re: clone a linux system over the network
      ... > will fix the above problems? ... Use ssh to run tar or cpio at the remote end. ... let you do this as root, in which case some files might be unreadable. ... Create a tar or cpio archive on the remote machine. ...
      (comp.os.linux.setup)
    • Re: sshfs to a machine but ls fail with Permission denied
      ... Please help to fix this problem. ... files in the /root directory of remote can be listed correctly by root ... local but the id is not twong. ...
      (comp.security.ssh)
    • Re: k3b permissions problems in SuSE9.2 pro
      ... >>1) CD record does not run with root privileges ... >>It says to run K3bSetup to fix the problems. ... that's not the first time these kinds of user permission ...
      (alt.os.linux.suse)
    • Re: Dug myself into several deep holes
      ... > Over several months I have tried to fix sound, mail, X ... as root, force yourself to use sudo for things, and ask yourself three times ... learn to make backups of your system. ... Hardware/disk failure is ...
      (Debian-User)
    • Re: I messed up some config files, now all my users have lost sudo priv :(
      ... way I can fix it until I get to work and reboot in recovery mode. ... because the server is an essential web and svn server for the company - ... The first thing you have to do is to become root. ... The only stupid question is the one you don't ask ...
      (Ubuntu)