-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from the "fixed + not affected" OVAL file to the "fixed + not … #635
Open
msmeissn
wants to merge
4
commits into
anchore:main
Choose a base branch
from
msmeissn:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4e0fe05
Switch from the "fixed + not affected" OVAL file to the "fixed + not …
msmeissn aa19d37
Merge branch 'main' of github.com:anchore/vunnel into msmeissn/main
willmurphyscode 6efb539
fix: special case "greater than version zero" test
willmurphyscode 2a5c055
chore: update test snapshots for new SLES feeds
willmurphyscode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
41 changes: 41 additions & 0 deletions
41
tests/unit/providers/sles/test-fixtures/snapshots/sles:15.1/cve-2010-2322.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"identifier": "sles:15.1/cve-2010-2322", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [ | ||
{ | ||
"base_metrics": { | ||
"base_score": 3.7, | ||
"base_severity": "Low", | ||
"exploitability_score": 2.2, | ||
"impact_score": 1.4 | ||
}, | ||
"status": "N/A", | ||
"vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N", | ||
"version": "3.1" | ||
} | ||
], | ||
"Description": "Absolute path traversal vulnerability in the extract_jar function in jartool.c in FastJar 0.98 allows remote attackers to create or overwrite arbitrary files via\n a full pathname for a file within a .jar archive, a related issue to CVE-2010-0831. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-3619.", | ||
"FixedIn": [ | ||
{ | ||
"Module": "", | ||
"Name": "fastjar", | ||
"NamespaceName": "sles:15.1", | ||
"VendorAdvisory": { | ||
"AdvisorySummary": [], | ||
"NoAdvisory": false | ||
}, | ||
"Version": "None", | ||
"VersionFormat": "rpm", | ||
"VulnerableRange": null | ||
} | ||
], | ||
"Link": "https://www.suse.com/security/cve/CVE-2010-2322", | ||
"Metadata": {}, | ||
"Name": "CVE-2010-2322", | ||
"NamespaceName": "sles:15.1", | ||
"Severity": "Low" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,6 +298,44 @@ UG64TKDHFDLMRIRJQG/#QQHP7MDAGKGRMVUG64TKDHFDLMRIRJQG"></reference> | |
</criteria> | ||
</criteria> | ||
</definition> | ||
<definition id="oval:org.opensuse.security:def:20102322" version="1" class="vulnerability"> | ||
<metadata> | ||
<title>CVE-2010-2322</title> | ||
<affected family="unix"> | ||
<platform>SUSE Linux Enterprise Server 15 SP1-LTSS</platform> | ||
<platform>SUSE Linux Enterprise Server for SAP Applications 15 SP1</platform> | ||
</affected> | ||
<reference source="CVE" ref_id="Mitre CVE-2010-2322" ref_url="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2322"></reference> | ||
<reference source="SUSE CVE" ref_id="SUSE CVE-2010-2322" ref_url="https://www.suse.com/security/cve/CVE-2010-2322"></reference> | ||
<reference source="SUSE-SU" ref_id="SUSE-SU-2021:2635-1" ref_url="https://lists.suse.com/pipermail/sle-security-updates/2021-August/009264.html"></reference> | ||
<reference source="SUSE-SU" ref_id="openSUSE-SU-2021:1107-1" ref_url="https://lists.opensuse.org/archives/list/[email protected]/thread/AJWN7K3ZWIZYG5QW25KKFIGISFYT | ||
G2R3/"></reference> | ||
<reference source="SUSE-SU" ref_id="openSUSE-SU-2021:2565-1" ref_url="https://lists.opensuse.org/archives/list/[email protected]/thread/OHWHBBR2CBRHE7HR6PAPJLGHP3QC | ||
HYHS/"></reference> | ||
<description>
 Absolute path traversal vulnerability in the extract_jar function in jartool.c in FastJar 0.98 allows remote attackers to create or overwrite arbitrary files via | ||
a full pathname for a file within a .jar archive, a related issue to CVE-2010-0831. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-3619.
 </description> | ||
<advisory> | ||
<severity>Low</severity> | ||
<cve cvss3="3.7/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N" cwe="" impact="low" href="https://www.suse.com/security/cve/CVE-2010-2322/" public="">CVE-2010-2322 at SUSE</cve> | ||
<cve cwe="" impact="" href="https://nvd.nist.gov/vuln/detail/CVE-2010-2322" public="">CVE-2010-2322 at NVD</cve> | ||
<bugzilla id="" href="https://bugzilla.suse.com/1188517">SUSE bug 1188517</bugzilla> | ||
<affected_cpe_list> | ||
<cpe>cpe:/o:suse:sles-ltss:15:sp1</cpe> | ||
<cpe>cpe:/o:suse:sles_sap:15:sp1</cpe> | ||
</affected_cpe_list> | ||
<issued date="2022-05-20"></issued> | ||
<updated date="2024-04-26"></updated> | ||
<affected></affected> | ||
</advisory> | ||
</metadata> | ||
<criteria operator="AND"> | ||
<criteria operator="OR"> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009341508" comment="SUSE Linux Enterprise Server 15 SP1-LTSS is installed"></criterion> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009341764" comment="SUSE Linux Enterprise Server for SAP Applications 15 SP1 is installed"></criterion> | ||
</criteria> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009694232" comment="fastjar is affected"></criterion> | ||
</criteria> | ||
</definition> | ||
</definitions> | ||
<tests> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009302033" version="1" comment="sles-ltss-release is ==15" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
|
@@ -380,6 +418,14 @@ UG64TKDHFDLMRIRJQG/#QQHP7MDAGKGRMVUG64TKDHFDLMRIRJQG"></reference> | |
<object object_ref="oval:org.opensuse.security:obj:2009031042"></object> | ||
<state state_ref="oval:org.opensuse.security:ste:2009111500"></state> | ||
</rpminfo_test> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009341764" comment="SLES_SAP-release is ==15.1" check="at least one" version="1"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009047546"></object> | ||
<state state_ref="oval:org.opensuse.security:ste:2009068342"></state> | ||
</rpminfo_test> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009694232" comment="fastjar is >0" check="at least one" version="1"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009037419"></object> | ||
<state state_ref="oval:org.opensuse.security:ste:2009079459"></state> | ||
</rpminfo_test> | ||
</tests> | ||
<objects> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009049560" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
|
@@ -433,6 +479,15 @@ UG64TKDHFDLMRIRJQG/#QQHP7MDAGKGRMVUG64TKDHFDLMRIRJQG"></reference> | |
<rpminfo_object id="oval:org.opensuse.security:obj:2009031042" version="1"> | ||
<name>krb5-server</name> | ||
</rpminfo_object> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009047546" version="1"> | ||
<name>SLES_SAP-release</name> | ||
</rpminfo_object> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009049560" version="1"> | ||
<name>sles-ltss-release</name> | ||
</rpminfo_object> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009037419" version="1"> | ||
<name>fastjar</name> | ||
</rpminfo_object> | ||
</objects> | ||
<state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009061809" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
|
@@ -449,8 +504,11 @@ UG64TKDHFDLMRIRJQG/#QQHP7MDAGKGRMVUG64TKDHFDLMRIRJQG"></reference> | |
<arch datatype="string" operation="pattern match">(aarch64|ppc64le|s390x|x86_64)</arch> | ||
<evr datatype="evr_string" operation="less than">0:4.12.14-197.89.2</evr> | ||
</rpminfo_state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009111500" version="1"> | ||
<evr operation="6">0:1.15.2-4.25</evr> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009111500" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<evr datatype="evr_string" operation="less than">0:1.15.2-4.25</evr> | ||
</rpminfo_state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009079459" version="1"> | ||
<evr operation="greater than">0:0-0</evr> | ||
</rpminfo_state> | ||
</state> | ||
</oval_definitions> |
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assumption here is this: That packages that are vulnerable in a given version of SLES, if they are affected and no patch is available, are considered vulnerable if present.
In other words, saying "PackageA is vulnerable" is always either: "All versions of PackagA are vulnerable" or saying, "PackageA is vulnerable until version 0:1.23", and we never say something like, "PackageA is vulnerable for versions greater than 0:1.23 and less than 0:2.0" or something.
Is this assumption valid @BenoitGui or @msmeissn ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems valid for me, but @msmeissn should confirm this assumption since he is the author of the code 👍