Repository navigation
Fix JFrog Xray JSON parser for CWE and CVSS v3 (#3597 fix) #3585
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0153eb1
Add more unit tests for JFrogXray
damiencarol 94d5643
Fix CWE bug and CVSS v3 parsing
damiencarol c0031aa
Fix when file is None
damiencarol dc18026
Add more unit tests and reduce test data
damiencarol 76355ad
Fix unit tests
damiencarol 32bb40c
Add unit tests to JFrog parser
damiencarol 1f18908
Ignore case for CWE decoding
damiencarol 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 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| { | ||
| "total_count": 2, | ||
| "data": [ | ||
| { | ||
| "id": "", | ||
| "severity": "High", | ||
| "summary": "pip PyPI (Python Packaging Index) PipXmlrpcTransport._download_http_url() Function Content-Disposition Header Path Traversal Arbitrary File Write Weakness", | ||
| "issue_type": "security", | ||
| "provider": "JFrog", | ||
| "component": "pip", | ||
| "source_id": "pypi://pip", | ||
| "source_comp_id": "pypi://pip:9.0.1", | ||
| "component_versions": { | ||
| "more_details": { | ||
| "cves": [ | ||
| { | ||
| "cvss_v2": "7.6/AV:N/AC:H/Au:N/C:C/I:C/A:C", | ||
| "cvss_v3": "7.5/CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H" | ||
| } | ||
| ], | ||
| "provider": "JFrog" | ||
| } | ||
| }, | ||
| "edited": "2020-11-04T19:26:15Z", | ||
| "is_source_root": false | ||
| }, | ||
| { | ||
| "id": "", | ||
| "severity": "High", | ||
| "summary": "A flaw was found in the Linux kernel before 5.9-rc4. Memory corruption can be exploited to gain root privileges from unprivileged processes. The highest threat from this vulnerability is to data confidentiality and integrity.", | ||
| "issue_type": "security", | ||
| "provider": "JFrog", | ||
| "component": "ubuntu:bionic:linux", | ||
| "source_id": "deb://ubuntu:bionic:linux", | ||
| "source_comp_id": "deb://ubuntu:bionic:linux:4.15.0-88.88", | ||
| "component_versions": { | ||
| "id": "ubuntu:bionic:linux", | ||
| "vulnerable_versions": [ | ||
| "< 4.15.0-117.118" | ||
| ], | ||
| "fixed_versions": [ | ||
| "≥ 4.15.0-117.118" | ||
| ], | ||
| "more_details": { | ||
| "cves": [ | ||
| { | ||
| "cve": "CVE-2020-14386", | ||
| "cwe": [ | ||
| "CWE-787" | ||
| ], | ||
| "cvss_v2": "7.2/CVSS:2.0/AV:L/AC:L/Au:N/C:C/I:C/A:C", | ||
| "cvss_v3": "7.8/CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H" | ||
| } | ||
| ], | ||
| "provider": "JFrog" | ||
| } | ||
| }, | ||
| "edited": "2020-12-29T10:08:57Z", | ||
| "is_source_root": false | ||
| } | ||
| ] | ||
| } |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.