forked from intel/cve-bin-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: split curl and libcurl checkers
Fix intel#3173 Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
- Loading branch information
Showing
8 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,7 @@ | |
"libass", | ||
"libbpg", | ||
"libconfuse", | ||
"libcurl", | ||
"libdb", | ||
"libebml", | ||
"libgcrypt", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 libcurl: | ||
https://www.cvedetails.com/product/25085/Haxx-Libcurl.html?vendor_id=12682 | ||
""" | ||
from __future__ import annotations | ||
|
||
from cve_bin_tool.checkers import Checker | ||
|
||
|
||
class LibcurlChecker(Checker): | ||
CONTAINS_PATTERNS: list[str] = [] | ||
FILENAME_PATTERNS: list[str] = [] | ||
VERSION_PATTERNS = [r"libcurl[ -/]([678]+\.[0-9]+\.[0-9]+)"] | ||
VENDOR_PRODUCT = [("haxx", "libcurl")] |
Binary file not shown.
Binary file added
BIN
+64.8 KB
test/condensed-downloads/libcurl3-gnutls_7.64.0-4+deb10u2_amd64.deb.tar.gz
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (C) 2023 Orange | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
mapping_test_data = [ | ||
{"product": "libcurl", "version": "7.34.0", "version_strings": ["libcurl 7.34.0"]}, | ||
{"product": "libcurl", "version": "7.34.0", "version_strings": ["libcurl-7.34.0"]}, | ||
{"product": "libcurl", "version": "7.34.0", "version_strings": ["libcurl/7.34.0"]}, | ||
] | ||
package_test_data = [ | ||
{ | ||
"url": "http://ftp.br.debian.org/debian/pool/main/c/curl/", | ||
"package_name": "libcurl3-gnutls_7.64.0-4+deb10u2_amd64.deb", | ||
"product": "libcurl", | ||
"version": "7.64.0", | ||
}, | ||
{ | ||
"url": "http://mirror.centos.org/centos/7/os/x86_64/Packages/", | ||
"package_name": "libcurl-7.29.0-59.el7.x86_64.rpm", | ||
"product": "libcurl", | ||
"version": "7.29.0", | ||
}, | ||
{ | ||
"url": "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Everything/x86_64/os/Packages/l/", | ||
"package_name": "libcurl-7.64.0-6.fc30.x86_64.rpm", | ||
"product": "libcurl", | ||
"version": "7.64.0", | ||
}, | ||
{ | ||
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/base/", | ||
"package_name": "libcurl4_7.66.0-3_x86_64.ipk", | ||
"product": "libcurl", | ||
"version": "7.66.0", | ||
}, | ||
] |