Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Zlib distribution infected?

  1. #1
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Zlib distribution infected?

    The distribution files of zlib from www.zlib.net may contain a virus.

    If you build and install it then next time you boot your computer. you will get...

    1. Nautilus can't be used now, due to an unexpected error from Bonobo when attempting to register the file manager view server.

    2. The panel could not register with the bonobo-activation server (error code: 3) and will exit. It may be automatically restarted.

    You can repeat this test reliably in a virtual box machine. I tested both on a Windows and Ubuntu host with 3 different versions of virtualbox that all work fine with Hardy Heron installations that do not have zlib:

    - Create new virtual machine
    - Install Hardy Heron from ubuntu-8.04.1-desktop-i386.iso
    - Do all the automatic updates.
    - Install virtualbox guest additions.
    - sudo apt-get install build-essential

    - Fetch and extract zlib-1.2.5.tar.gz from zlib.net
    - cd to your zlib folder, configure, build and then run
    sudo make install.

    reboot your virtual machine and it is unuseable.
    If you send them e-mail about this you will get a virus alert back.
    Last edited by worksofcraft; July 23rd, 2010 at 05:54 AM.

  2. #2
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Zlib distribution infected?

    Anyway I also tried installing zlib on a virtual machine running Ubuntu 10.04 (32bit) and I get similar problem:

    Loads of dialog boxes saying:

    The panel encountered a problem while loading
    "OAFIID:GNOME_WorkspaceSwitcherApplet".
    Do you want to delete the applet from your configuration?

    ditto:
    GNOME_FastUserSwitchApplet
    GNOME_ClockApplet
    GNOME_Panel_TrashApplet
    GNOME_WindowListApplet
    GNOME_ShowDesktopApplet
    GNOME_IndicatorApplet
    GNOME_NotificationAreaApplet
    ...but in this case if you delete them you do still have a panel with launchers and menus, so you might still be able to add them back. OTOH if you try doing system administration tasks it let's you type your password then simply doesn't work.

    I'm so glad I use virtualbox and even have a snapshot to restore to

  3. #3
    Join Date
    Sep 2009
    Location
    Netherlands
    Beans
    115
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Zlib distribution infected?

    I don't think it's infected.
    It might be an incompatibility between version 1.2.3 and 1.2.5, with libxml.
    You shouldn't be compiling zlib for your system unless you know what you're doing.
    Use package 'zlib1g' instead.

  4. #4
    Join Date
    Oct 2006
    Beans
    4,628
    Distro
    Kubuntu 18.10 Cosmic Cuttlefish

    Re: Zlib distribution infected?

    Quote Originally Posted by Lekensteyn View Post
    I don't think it's infected.
    It might be an incompatibility between version 1.2.3 and 1.2.5, with libxml.
    You shouldn't be compiling zlib for your system unless you know what you're doing.
    Use package 'zlib1g' instead.
    This is more likely the case. Considering just how many packages have a dependency on zlib, installing a different version than what everything was compiled against is most certainly going to break something. Probably not a virus.
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
    Please don't request support via PM


  5. #5
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Zlib distribution infected?

    Oh, well in that case it is important to know that we can't safely install the current version.

    To avoid instabilities (such as Windows gets with .dll libraries) Linux .so libraries can have a version specified.

    This must be what is needed for anyone who wants to learn or experiment with the latest zlib. I don't know the correct procedure yet, but will post it when I find out.

  6. #6
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Zlib distribution infected?

    I explain in a mo, but my CONCLUSION is that zlib.net are innocent and the problem is distribution of Ubuntu being ignorant of how the File System Hyrarchy for libraries is intended!


    Explanation:

    Folder /lib contains libz.so.1.2.3.3 and a symbolic link libz.so.1 that also points to that tried and trusted library.
    /lib is the folder that SHOULD be used by ALL the essential software! Certainly doing "sudo make install" of zlib 1.2.5 doesn't do anything to change /lib

    Now there is also /usr/lib for user applications that are not part of the system software which would be essential to run your computer. Once again good old zlib "make install" does NOT do anything to corrupt what is there and so all our programming tools should just carry on as normal while we experiment with zlib.

    What it DOES do is in /usr/local/lib where it creates libz.so.1.2.5 and symbolic links to the same, named libz.so and libz.so.1.

    Now the entries in /usr/local/lib are precisely the ones that your local and possibly buggy development work is dealing with so that should be perefectly fine because the essential and the trusted installed software are not supposed to be using any of them... so why then are they getting used when I restart my virtual machine???!!!


    IMHO the distribution packages need to be rebuilt to look in correct place for their shared object libraries
    Last edited by worksofcraft; July 25th, 2010 at 10:25 AM. Reason: typo

  7. #7
    Join Date
    Jul 2010
    Beans
    4

    Re: Zlib distribution infected?

    Hi everyone, I have the same problem, but I'm a novice linux user and being happy enough with having find out that is zlib what is making my login screen, my panel applets and some other issues to crash. Well, maybe is not zlib, as you say, but in anyway is when I install it or uninstall it when everything 'goes to the ****:spanish'.

    Then, could I install libpng without installing zlib 1.2.5? because I really need to use libpng, which depends on zlib.

    while some guru comes with the answers Ill try to install another zlib version or the libpng alone or whatever...

  8. #8
    Join Date
    Jul 2010
    Beans
    4

    Re: Zlib distribution infected?

    umm... I have been able to install this one http://archive.ubuntu.com/ubuntu/poo....3.orig.tar.gz

    and there is no error in Ubuntu despite I have restarted: login screen ok, panel's applets allright, everything ok.
    so... now I'm trying libpng...

    ah! if zlib_1.2.3 is actually working, then there is something in 1.2.5 that works worse than in 1.2.3, or is less flexible or... dont know, it works!

  9. #9
    Join Date
    Sep 2007
    Location
    Christchurch, New Zealand
    Beans
    1,328
    Distro
    Ubuntu

    Re: Zlib distribution infected?

    ^ yes I agree, version 1.2.3.3 is fine.

    You can install it with
    System->Administration->Synaptic Package Manager

    then search for zlib1g-dev, mark it for installation and click "Apply"

    NOte: First it is best to remove the bad version 1.2.5
    I did as follows:

    cd /etc/local/lib
    rm libz.so
    rm libz.so.1

    if it complains about them not being there then you don't need to remove them, but if you are not using root prompt in recovery mode then you may have to type "sudo" before the rm commands or permission could be denied!

  10. #10
    Join Date
    Jul 2010
    Beans
    4

    Re: Zlib distribution infected?

    hehe I'm novice but not so much (I guess xD) but thank you for being sensitive.

    I have uninstalled with sudo make uninstall, and then installed the 1.2.3 with the typical ./configure;make;sudo make install

    What I would like to know is if zlib boys or ubuntu people know that 1.2.5 with 10.04 is having such problems, because to people with little time with linux, ubuntu not having login screen and disabling all the panel applets etc could take us back to windows xp.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •