Ignore the minor target part of the revision for CentOS packages in VDT#6709
Merged
chemamartinez merged 6 commits intomasterfrom Nov 27, 2020
Merged
Ignore the minor target part of the revision for CentOS packages in VDT#6709chemamartinez merged 6 commits intomasterfrom
chemamartinez merged 6 commits intomasterfrom
Conversation
danimegar
suggested changes
Nov 25, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request attempts to avoid false positives like the one reported at #6261.
It truncates the minor part of the package revision when the agent being analyzed is CentOS instead of RHEL. Following the case that @gary561 reported for a CentOS 6:
CVE-2013-0292
We can see the RHSA provided by RHEL which tells us, as the OVAL feed, that the fix for RHEL6 is provided in the package
dbus-glib-0.86-6.el6_4.src.rpmand derivates.When installing a RHEL6 we can see the
dbus-glibpackage installed by default is the one that the feed points to.And the vulnerability is fixed:
However, when installing a CentOS 6 we find the version installed is
0.86-6.el6:And the package has the same size, commits, description, etc. The only difference is the package builder, which is CentOS in this case.
To sum up, we cannot ensure that packages built by the CentOS team have the same lineage as the ones provided by the Red Hat team, at least for backports. So, facing the lack of a particular feed for CentOS vulnerabilities the best way to avoid these false positives is to not compare the minor target when scanning packages provided by CentOS.
Tests
After running the scan for CentOS 6 we can see now the
CVE-2013-0292is not reported:dbus-glibis marked as vulnerable by the NVD, but discarded in the correlation process due to the OVAL.Memory tests for Linux
Added unit tests (for new features)
Stress test for affected components