Skip to content

Commit ab0e8ea

Browse files
authored
Fix package links, comment out bug #1 cves (#230)
1 parent 43cc422 commit ab0e8ea

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/test_scanner.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,14 @@ def test_expat_2_0_1(self):
196196
"CVE-2012-0876",
197197
# Check for other issues from more recent versions
198198
# 2.1
199-
"CVE-2016-0718",
200199
# "CVE-2016-4472",
201200
# "CVE-2016-5300",
202201
# "CVE-2012-6702",
203202
# "CVE-2015-1283",
204203
# 2.2
205204
# "CVE-2017-9233",
206205
# "CVE-2016-9063",
207-
"CVE-2016-0718",
206+
# "CVE-2016-0718", Changed in nvd1.1 to not be caught
208207
# "CVE-2017-11742",
209208
],
210209
["CVE-blahblah"],
@@ -225,7 +224,7 @@ def test_expat_deb_2_2_0(self):
225224
""" Test detection of expat 2.2 debian package """
226225
self._file_test(
227226
"http://http.us.debian.org/debian/pool/main/e/expat/",
228-
"libexpat1_2.2.0-2+deb9u1_amd64.deb",
227+
"libexpat1_2.2.0-2+deb9u3_amd64.deb",
229228
"expat",
230229
"2.2.0",
231230
)
@@ -263,7 +262,11 @@ def test_kerberos_1_15_1(self):
263262
"test-kerberos-5-1.15.1.out",
264263
"kerberos",
265264
"5-1.15.1",
266-
["CVE-2017-11462", "CVE-2017-11368", "CVE-2018-5730"],
265+
[
266+
"CVE-2017-11462",
267+
"CVE-2017-11368",
268+
# "CVE-2018-5730" affected by bug #1
269+
],
267270
["CVE-2019-3823"],
268271
)
269272

@@ -272,7 +275,7 @@ def test_kerberos_rpm_1_15_1(self):
272275
""" Test detection of krb5-libs (kerberos libraries) from Centos """
273276
self._file_test(
274277
"http://mirror.centos.org/centos/7/os/x86_64/Packages/",
275-
"krb5-libs-1.15.1-34.el7.i686.rpm",
278+
"krb5-libs-1.15.1-37.el7_6.i686.rpm",
276279
"kerberos",
277280
"1.15.1",
278281
)
@@ -555,7 +558,7 @@ def test_systemd_rpm_219(self):
555558
""" test detection of a systemd 219 rpm from centos 7 """
556559
self._file_test(
557560
"http://mirror.centos.org/centos/7/os/x86_64/Packages/",
558-
"systemd-219-62.el7.x86_64.rpm",
561+
"systemd-219-67.el7.x86_64.rpm",
559562
"systemd",
560563
"219",
561564
)

0 commit comments

Comments
 (0)