Skip to content

Commit db81bfc

Browse files
authored
feat(checker): add xrdp (#5331)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 02e2586 commit db81bfc

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@
441441
"xerces",
442442
"xml2",
443443
"xpdf",
444+
"xrdp",
444445
"xscreensaver",
445446
"xwayland",
446447
"xz",

cve_bin_tool/checkers/xrdp.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 xrdp
7+
8+
https://www.cvedetails.com/product/63511/Neutrinolabs-Xrdp.html?vendor_id=21138
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class XrdpChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?)\r?\nxrdp"]
20+
VENDOR_PRODUCT = [("neutrinolabs", "xrdp")]
63.2 KB
Binary file not shown.
44.9 KB
Binary file not shown.
113 KB
Binary file not shown.

test/test_data/xrdp.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{"product": "xrdp", "version": "0.9.11", "version_strings": ["0.9.11\nxrdp"]}
6+
]
7+
package_test_data = [
8+
{
9+
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/x/",
10+
"package_name": "xrdp-0.10.4-3.fc43.aarch64.rpm",
11+
"product": "xrdp",
12+
"version": "0.10.4",
13+
},
14+
{
15+
"url": "http://ftp.debian.org/debian/pool/main/x/xrdp/",
16+
"package_name": "xrdp_0.9.21.1-1~deb11u1_amd64.deb",
17+
"product": "xrdp",
18+
"version": "0.9.21.1",
19+
},
20+
{
21+
"url": "https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/",
22+
"package_name": "xrdp-0.9.11-r1.apk",
23+
"product": "xrdp",
24+
"version": "0.9.11",
25+
"other_products": ["gcc"],
26+
},
27+
]

0 commit comments

Comments
 (0)