Skip to content

Commit e2305b2

Browse files
ffontaineterriko
andauthored
fix: improve icecast checker (#2545)
* fix: improve icecast checker xiph:icecast is a valid CPE ID While at it, add debian and openwrt test packages Signed-off-by: Fabrice Fontaine <[email protected]> * test: add other_products data to new tests --------- Signed-off-by: Fabrice Fontaine <[email protected]> Co-authored-by: Terri Oda <[email protected]>
1 parent 19ba6ed commit e2305b2

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

cve_bin_tool/checkers/icecast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
CVE checker for icecast
77
88
https://www.cvedetails.com/product/1194/Icecast-Icecast.html?vendor_id=693
9+
https://www.cvedetails.com/product/31619/Xiph-Icecast.html?vendor_id=7966
910
1011
"""
1112
from __future__ import annotations
@@ -17,4 +18,4 @@ class IcecastChecker(Checker):
1718
CONTAINS_PATTERNS: list[str] = []
1819
FILENAME_PATTERNS = [r"icecast"]
1920
VERSION_PATTERNS = [r"Icecast ([0-9]+\.[0-9]+\.[0-9]+)"]
20-
VENDOR_PRODUCT = [("icecast", "icecast")]
21+
VENDOR_PRODUCT = [("icecast", "icecast"), ("xiph", "icecast")]
Binary file not shown.
Binary file not shown.

test/test_data/icecast.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,18 @@
2323
"version": "2.4.4",
2424
"other_products": [],
2525
},
26+
{
27+
"url": "http://ftp.fr.debian.org/debian/pool/main/i/icecast2/",
28+
"package_name": "icecast2_2.4.0-1.1+deb8u1_amd64.deb",
29+
"product": "icecast",
30+
"version": "2.4.0",
31+
"other_products": [],
32+
},
33+
{
34+
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
35+
"package_name": "icecast_2.4.4-1_x86_64.ipk",
36+
"product": "icecast",
37+
"version": "2.4.4",
38+
"other_products": [],
39+
},
2640
]

0 commit comments

Comments
 (0)