-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a docstring to get_affected_packages Add a unite test for get_affected_packages function Remove unused variables Fix sorted affected_package_merge Add ruby importer and improver Fix style test Fix test Rewrite affected_packages Ruby initial config Reference: #796 Clean imported data after import process Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com> Fix sorted affected_package_merge Refactor Ruby importer and improver Add ruby importer and improver Fix style test Fix test Rewrite affected_packages Ruby initial config Reference: #796 Signed-off-by: ziadhany <ziadhany2016@gmail.com>
- Loading branch information
Showing
19 changed files
with
698 additions
and
255 deletions.
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
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
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
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
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
47 changes: 47 additions & 0 deletions
47
vulnerabilities/tests/test_data/ruby/CVE-2007-5770-expected.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,47 @@ | ||
{ | ||
"aliases": [ | ||
"CVE-2007-5770" | ||
], | ||
"summary": "Ruby Net::HTTPS library does not validate server certificate CN\nThe (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5)\nNet::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the\ncommonName (CN) field in a server certificate matches the domain name in a\nrequest sent over SSL, which makes it easier for remote attackers to\nintercept SSL transmissions via a man-in-the-middle attack or spoofed web\nsite, different components than CVE-2007-5162.", | ||
"affected_packages": [ | ||
{ | ||
"package": { | ||
"type": "ruby", | ||
"namespace": null, | ||
"name": "ruby", | ||
"version": null, | ||
"qualifiers": null, | ||
"subpath": null | ||
}, | ||
"affected_version_range": "vers:gem/<1.8.6.230|>=1.8.7", | ||
"fixed_version": null | ||
}, | ||
{ | ||
"package": { | ||
"type": "ruby", | ||
"namespace": null, | ||
"name": "ruby", | ||
"version": null, | ||
"qualifiers": null, | ||
"subpath": null | ||
}, | ||
"affected_version_range": "vers:gem/<1.8.7", | ||
"fixed_version": null | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"reference_id": "", | ||
"url": "http://www.cvedetails.com/cve/CVE-2007-5770/", | ||
"severities": [ | ||
{ | ||
"system": "cvssv2", | ||
"value": "4.3", | ||
"scoring_elements": "" | ||
} | ||
] | ||
} | ||
], | ||
"date_published": "2007-10-08T00:00:00+00:00", | ||
"weaknesses": [] | ||
} |
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,17 @@ | ||
--- | ||
engine: ruby | ||
cve: 2007-5770 | ||
url: http://www.cvedetails.com/cve/CVE-2007-5770/ | ||
title: Ruby Net::HTTPS library does not validate server certificate CN | ||
date: 2007-10-08 | ||
description: | | ||
The (1) Net::ftptls, (2) Net::telnets, (3) Net::imap, (4) Net::pop, and (5) | ||
Net::smtp libraries in Ruby 1.8.5 and 1.8.6 do not verify that the | ||
commonName (CN) field in a server certificate matches the domain name in a | ||
request sent over SSL, which makes it easier for remote attackers to | ||
intercept SSL transmissions via a man-in-the-middle attack or spoofed web | ||
site, different components than CVE-2007-5162. | ||
cvss_v2: 4.3 | ||
patched_versions: | ||
- ~> 1.8.6.230 | ||
- '>= 1.8.7' |
Oops, something went wrong.