Open Bug 1951260 Opened 1 year ago Updated 1 month ago

[meta] Stale libraries and such that are known to have security issues in comm-central

Categories

(MailNews Core :: Security, defect)

defect

Tracking

(Not tracked)

People

(Reporter: ishikawa, Assigned: ebaginski)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

Attachments

(3 files)

Maybe I am missing something.

But I ran a tool for checking security vulnerabilities for files used in CI/CD environment called " trivy". [1]

This took checks for the vulnerability database and then checks if the installed libraries and such have known vulnerability issues.

Well, I ran the following command against comm directory.

trivy filesystem --dependency-tree comm

As you can see in the attachment, there are MANY libraries that are known to have security issues.
Shouldn't they be replaced with the suggested (in the table) up-to-date versions that fixed the reported security issues?

I said I may be missing something.
Some of these libraries may be used only within the treeherder compilation farm.
But given the large # of libraries reported, I THINK some of them are linked into the final thunderbird after linked into libxul.a and other libraries.

There are issues with severity being "HIGH".
I am a bit stunned right now.

The output is best seen in a terminal with fixed width font (I think I may be able to produce the HTML version somehow).

It should be easy to understand.
Library is listed with its known vulnerability.
The severity is shown.
Whether it has been fixed or not is given.
The installed version and fixed version(s), if any, are listed.
So the library with the vulnerability ought to be replaced with the version that fixes the vulnerability issue.

"trivy" uses the configuratoin files (YAML, etc.) in the source tree as a form of SBOM (Software Bill Of Material) to produce these tables.
I have no idea if some of the libraries mentioned are indigenous to my local Debian GNU/Linux installation. Debian strives to fix security issues, but there may be such system-supplied library reported here.
However, many rust libraries are definitely in the comm-central tree if I am not mistaken.

Since the output shows a rather suprising status of libraries in the tree, I am reporting this before I have the time to figure out
which library is indigenous to my local system.
I think the output from "trivy" merits immediate attention by some people.

TIA

I forgot to attach the URL for trivy.
[1] https://trivy.dev/latest/

The output in my tty window highlights the severity with colors and also, the horizontally long tables are best viewed by a browser, here is an HTML versin of the output which was created by copy function of the tty terminal program itself (not by trivy).

I agree those should be fixed. Most of them are not really comm-central though...

(In reply to Magnus Melin [:mkmelin] from comment #3)

I agree those should be fixed. Most of them are not really comm-central though...

Oh, in that case, maybe I should file bugzilla for M-C tree?

For the record, I checked the mozilla (M-C) directory with the same tool.
I had to move the comm subdirectories (a few copies under different names for local development purposes) since the skip directory feature of trivy did not work as I expected.

Obviously, there are more issues under M-C direcotory.
Again, I am not sure if libraries flagged are used in the final firefox binary or not, but
I think it is easier to replace them with the newer versions and avoid spending time to see if these are used in resulting binaries or not.

I suspect nobody in the mozilla community has tried to abuse the vulnerability issues on the server farm, not even for April fools pun. :-)

EDIT: fixed typos.

Right, best to file a bug under each relevant component

(In reply to Magnus Melin [:mkmelin] from comment #6)

Right, best to file a bug under each relevant component

OK, I will divide the report for each major subcomponent, i.e., subdirectory and report them.
I am tied up with a firefighter mode at home and so it will take a few days before I can file them.

Flags: needinfo?(ishikawa)
Keywords: meta
Summary: Stale libraries and such that are known to have security issues in comm-central → [meta] Stale libraries and such that are known to have security issues in comm-central

I will begin filing this issue after fire fighting mode at the day office ceases.
Thank you for the reminder.
I keep the needinfo request intact until I can begin touching this bugzilla.

I don't think this needs to be hidden (anyone can run that tool for themselves if they like).
Probably most of the libraries listed should be updated, for good measure.

Group: mail-core-security

We should look into using updatebot where we can. For example:
https://searchfox.org/firefox-main/source/netwerk/sctp/src/moz.yaml#57

Assignee: nobody → ebaginski
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: