Skip to content

Commit

Permalink
feat(checker): add twonky_server (#3408)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine committed Oct 11, 2023
1 parent 1a565c9 commit 66536ff
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
"tpm2_tss",
"transmission",
"trousers",
"twonky_server",
"u_boot",
"udisks",
"unbound",
Expand Down
20 changes: 20 additions & 0 deletions cve_bin_tool/checkers/twonky_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for twonky_server
https://www.cvedetails.com/product/70996/Lynxtechnology-Twonky-Server.html?vendor_id=21991
"""
from __future__ import annotations

from cve_bin_tool.checkers import Checker


class TwonkyServerChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"Product Name:Twonky, Version:([0-9]+\.[0-9]+\.[0-9]+)"]
VENDOR_PRODUCT = [("lynxtechnology", "twonky_server")]
Binary file not shown.
19 changes: 19 additions & 0 deletions test/test_data/twonky_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{
"product": "twonky_server",
"version": "8.5.2",
"version_strings": ["Product Name:Twonky, Version:8.5.2"],
}
]
package_test_data = [
{
"url": "https://download.twonky.com/8.5.2/",
"package_name": "twonky-x86-64-glibc-2.22-8.5.2.zip",
"product": "twonky_server",
"version": "8.5.2",
"other_products": ["libjpeg"],
},
]

0 comments on commit 66536ff

Please sign in to comment.