Skip to content

Commit e432311

Browse files
authored
feat(checker): add fastnetmon checker (#5223)
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
1 parent 079d780 commit e432311

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"f2fs_tools",
107107
"faad2",
108108
"fastd",
109+
"fastnetmon",
109110
"ffmpeg",
110111
"file",
111112
"firefox",

cve_bin_tool/checkers/fastnetmon.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for fastnetmon
7+
8+
https://www.cvedetails.com/product/88854/Motion-Project-Motion.html?vendor_id=23775
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class FastnetmonChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"fastnetmon-([0-9]+\.[0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("pavel-odintsov", "fastnetmon")]
Binary file not shown.

test/test_data/fastnetmon.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "fastnetmon",
7+
"version": "1.1.3",
8+
"version_strings": ["fastnetmon-1.1.3"],
9+
}
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/f/",
14+
"package_name": "fastnetmon-1.2.1-24.20220528git420e7b8.fc43.aarch64.rpm",
15+
"product": "fastnetmon",
16+
"version": "1.2.1",
17+
},
18+
{
19+
"url": "http://ftp.fr.debian.org/debian/pool/main/f/fastnetmon/",
20+
"package_name": "fastnetmon_1.1.3+dfsg-8.1_amd64.deb",
21+
"product": "fastnetmon",
22+
"version": "1.1.3",
23+
},
24+
]

0 commit comments

Comments
 (0)