Zimbra Security Update

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
halfgaar
Advanced member
Advanced member
Posts: 151
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 18.04, 8.8.15_P43
Contact:

Re: Zimbra Security Update

Post by halfgaar »

To come back to this:
gabrieles wrote: Thu Aug 31, 2023 7:49 am Ok, if talking about it is somewhat permitted I would like to share this detail:

When we received the "delete these 3 files" workaround, we first checked if these file existed.
We found them existing on every production environment, but NOT on the test environments: on the test envs only the first existed (it's on the base package).
We tried to call the first of the files, the only one reachable under public, and we found that the request generates the other two files, the ones under jetty/work.
This explicit request leaves a trace on the nginx.access.log, easily greppable with
halfgaar wrote: Wed Aug 30, 2023 9:30 pm

Code: Select all

grep --fixed-strings --ignore-case hostedlogin /opt/zimbra/log/access_log*
So we supposed that the existence of the second and third files is subordinate to a request of the first one.
But on the production environments, all the three files have been found, and no evidence on the logs of that request.
We store over a year of logs, and checked all of them.

Are we looking in the wrong place? Can someone point us in the right direction?
And:
ghen wrote: Thu Aug 31, 2023 8:36 am That's strange, because all 3 files belong to the zimbra-mbox-webclient-war package... So you should have all 3 of them?
(rpm -ql zimbra-mbox-webclient-war | grep hostedlogin)

If you suspect two were generated at runtime, what is the age (mtime) of those files, according to ls -l ?
I just helped someone over DM and found that two of the three files had been regenerated for me too, in 'public_'. Timestamped 'aug 30 19:04', the same time I accessed the URLs (of non-existing files) with curl.
Consider seriously: because of the history of exploits: block Zimbra web interface with VPN, firewall or HTTP proxy.
User avatar
gabrieles
Outstanding Member
Outstanding Member
Posts: 228
Joined: Tue Feb 14, 2017 9:40 am

Re: Zimbra Security Update

Post by gabrieles »

halfgaar wrote: Tue Sep 05, 2023 1:03 pm I just helped someone over DM and found that two of the three files had been regenerated for me too, in 'public_'. Timestamped 'aug 30 19:04', the same time I accessed the URLs (of non-existing files) with curl.
I've checked after and before having tried to access the non existing url. I haven't found any regenerated file.
Do the installation that you are checking have the mailbox service installed on more than one server?
halfgaar
Advanced member
Advanced member
Posts: 151
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 18.04, 8.8.15_P43
Contact:

Re: Zimbra Security Update

Post by halfgaar »

No, it's one. And I thought I checked for generated files at the time. I'm confused.
Consider seriously: because of the history of exploits: block Zimbra web interface with VPN, firewall or HTTP proxy.
User avatar
joho
Advanced member
Advanced member
Posts: 72
Joined: Tue Apr 26, 2016 9:24 am
ZCS/ZD Version: Release 8.8.15.GA.4177.UBUNTU20.64

Re: Zimbra Security Update

Post by joho »

One system here is a single node NETWORK 8.8.15 on P40. So I'm told I need to follow these instructions, rather than just zimbra-patch:

https://wiki.zimbra.com/wiki/Zimbra_Rel ... stallation

So, previously, we needed to go through a really tedious process to do single package installations, re-start services, continue with other installations, re-start services, and so on.

This time, when I started with "apt-get install zimbra-ldap-patch", it wants to pull in 32 of the Zimbra package updates. So I aborted. Looking at our previous patch installation process, this is how we started previously too. But I cannot recall apt-get wanting to install 32 packages when I selected to install zimbra-ldap-patch.

If I instead issue "apt-get install zimbra-common-core-jar zimbra-common-core-libs zimbra-mbox-store-libs", I get a slightly more sensible suggestion:

Code: Select all

zimbra-common-core-libs is already the newest version (8.8.15.1684166581-1.u20).
zimbra-mbox-store-libs is already the newest version (8.8.15.1663926687-1.u20).
The following packages will be upgraded:
  zimbra-common-core-jar
1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
But it's unclear (to me) if this is actually the right way for a (single node) NETWORK environment...
Labsy
Outstanding Member
Outstanding Member
Posts: 410
Joined: Sat Sep 13, 2014 12:52 am

Re: Zimbra Security Update

Post by Labsy »

glenndm wrote: Wed Aug 23, 2023 1:42 pm Checked the files mentioned at the support portal, they are gone.
So the patch has gone through, even if the version does not say so.

sidenote: the patch seems to have broken my clamav , every message carries now an UNCHECKED tag
off to correct that now.
thank you all for the assistance
Same with my server - files gone, but broken ClamAV, messages marked as ***UNCHECKED***.
Did you resolve? I am still digging, it's almost 3AM and becomming dizzy...
glenndm
Advanced member
Advanced member
Posts: 125
Joined: Fri Sep 12, 2014 10:35 pm
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64

Re: Zimbra Security Update

Post by glenndm »

Labsy wrote: Tue Sep 12, 2023 12:29 am
glenndm wrote: Wed Aug 23, 2023 1:42 pm Checked the files mentioned at the support portal, they are gone.
So the patch has gone through, even if the version does not say so.

sidenote: the patch seems to have broken my clamav , every message carries now an UNCHECKED tag
off to correct that now.
thank you all for the assistance
Same with my server - files gone, but broken ClamAV, messages marked as ***UNCHECKED***.
Did you resolve? I am still digging, it's almost 3AM and becomming dizzy...
Hi Labsy,
Sorry I haven't seen your message earlier, I hope this is already resolved
if not:
on my system two library files were removed during the patch, breaking clamav.

Code: Select all

/opt/zimbra/common/lib/libcrypto.so.1.1
/opt/zimbra/common/lib/libssl.so.1.1
Errors were entered in logfile /opt/zimbra/log/clamd.log
also this link helped viewtopic.php?t=60687&start=20

After restoring the 2 files and restarting zimbra, the unchecked labels disappeared.

From what I gather, my system or rather the clamav bit is not up to the latest version (How I don't know).
This caused the problems during the patch
I still have to resolve this version issue, I will do this next patch :)

regards
ghen
Outstanding Member
Outstanding Member
Posts: 227
Joined: Thu May 12, 2016 1:56 pm
Location: Belgium
ZCS/ZD Version: upgrading from 8.8.15 to 9.0

Re: Zimbra Security Update

Post by ghen »

What are your versions of:

zimbra-clamav (1.0.1 should depend on openssl 3.0.9)
zimbra-mta-components (1.0.22 should pull in zimbra-clamav 1.0.1)
zimbra-mta-patch (8.8.15-p41 should pull in zimbra-mta-components 1.0.22)
glenndm
Advanced member
Advanced member
Posts: 125
Joined: Fri Sep 12, 2014 10:35 pm
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64

Re: Zimbra Security Update

Post by glenndm »

ghen wrote: Tue Sep 26, 2023 4:31 pm What are your versions of:

zimbra-clamav (1.0.1 should depend on openssl 3.0.9)
zimbra-mta-components (1.0.22 should pull in zimbra-clamav 1.0.1)
zimbra-mta-patch (8.8.15-p41 should pull in zimbra-mta-components 1.0.22)
apt list:

Code: Select all

zimbra-clamav/unknown 1.0.1-1zimbra8.8b4.16.04 amd64 [upgradable from: 0.103.3-1zimbra8.8b3.16.04]
zimbra-mta-components/unknown 1.0.22-1zimbra8.8b1.16.04 all [upgradable from: 1.0.15-1zimbra8.8b1.16.04]
zimbra-mta-patch/unknown 8.8.15.1688898888.p41-1.u16 amd64 [upgradable from: 8.8.15.1658841204.p33-1.u16]
zmcontrol -v

Code: Select all

Release 8.8.15.GA.3829.UBUNTU16.64 UBUNTU16_64 NETWORK edition, Patch 8.8.15_P41.
I'm not sure how to read the apt-list output, but it seems to indicate zimbra is still at patch 33, while zmcontrol puts it at p41?
glenndm
Advanced member
Advanced member
Posts: 125
Joined: Fri Sep 12, 2014 10:35 pm
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64

Re: Zimbra Security Update

Post by glenndm »

glenndm wrote: Thu Sep 28, 2023 9:07 am I'm not sure how to read the apt-list output, but it seems to indicate zimbra is still at patch 33, while zmcontrol puts it at p41?
I hadn't noticed previously that the general upgrade command (apt-get update && apt-get upgrade) showed:

Code: Select all

The following packages have been kept back:
  zimbra-apache-components zimbra-clamav zimbra-clamav-lib zimbra-httpd zimbra-mta-components zimbra-mta-patch zimbra-spell-components
which explains (a bit) the version discrepancy.

internet suggests:

Code: Select all

apt-get --with-new-pkgs upgrade <list of packages kept back>
trial run seems to want to upgrade the packages, but first I am going to read up on this more.
Not sure what this will do (or cause)

best regards
glenndm
Advanced member
Advanced member
Posts: 125
Joined: Fri Sep 12, 2014 10:35 pm
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64

Re: Zimbra Security Update

Post by glenndm »

update: the packages were held back because of unfulfilled dependencies
the update command (apt-get --with-new-pkgs) showed the missing packages

reading viewtopic.php?p=307396, I opted to install the missing packages first

Code: Select all

apt-get install libpcre2-8-0 zimbra-aspell-ca
afterwards, apt-get upgrade completed without errors or keptbacks

Code: Select all

zimbra-clamav/unknown,now 1.0.1-1zimbra8.8b4.16.04 amd64 [installed,automatic]
zimbra-mta-components/unknown,now 1.0.22-1zimbra8.8b1.16.04 all [installed]
zimbra-mta-patch/unknown,now 8.8.15.1688898888.p41-1.u16 amd64 [installed]
zimbra-patch/unknown,now 8.8.15.1694190547.p43-2.u16 amd64 [installed]

Release 8.8.15.GA.3829.UBUNTU16.64 UBUNTU16_64 NETWORK edition, Patch 8.8.15_P41.
I think I'm done.
Post Reply