Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class OpensslChecker(Checker):
CONTAINS_PATTERNS = [r"part of OpenSSL", r"openssl.cnf", r"-DOPENSSL_"]
FILENAME_PATTERNS = [r"libssl.so.", r"libcrypto.so"]
VERSION_PATTERNS = [
r"OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+\r?\n(?:%s \(Library: %s\)|[a-zA-Z0-9:, \.\-\r\n]*OPENSSLDIR|ssl)",
r"OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+\r?\n(?:%s \(Library: %s\)|[a-zA-Z0-9:, \.\-\r\n]*OPENSSLDIR|ssl)?",
r"(?:%s \(Library: %s\)\r?\n|OPENSSLDIR[a-zA-Z0-9:/ \"\-\r\n]*)OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+",
]
VENDOR_PRODUCT = [("openssl", "openssl")]
Binary file not shown.
1 change: 1 addition & 0 deletions test/test_data/apache_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"package_name": "apache2-bin_2.4.10-10+deb8u12_amd64.deb",
"product": "http_server",
"version": "2.4.10",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
Expand Down
2 changes: 2 additions & 0 deletions test/test_data/bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"package_name": "bind-9.10.3-1.fc23.x86_64.rpm",
"product": "bind",
"version": "9.10.3",
"other_products": ["openssl"],
},
{
"url": "http://mirror.centos.org/centos/7/os/x86_64/Packages/",
"package_name": "bind-9.11.4-26.P2.el7.x86_64.rpm",
"product": "bind",
"version": "9.11.4",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/b/bind9/",
Expand Down
4 changes: 2 additions & 2 deletions test/test_data/exim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"package_name": "exim-4.96-3.fc38.aarch64.rpm",
"product": "exim",
"version": "4.96",
"other_products": ["berkeley_db"],
"other_products": ["berkeley_db", "openssl"],
},
{
"url": "http://rpmfind.net/linux/fedora-secondary/development/rawhide/Everything/ppc64le/os/Packages/e/",
"package_name": "exim-4.96-3.fc38.ppc64le.rpm",
"product": "exim",
"version": "4.96",
"other_products": ["berkeley_db"],
"other_products": ["berkeley_db", "openssl"],
},
{
"url": "http://ftp.de.debian.org/debian/pool/main/e/exim4/",
Expand Down
3 changes: 2 additions & 1 deletion test/test_data/haproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
"package_name": "haproxy_2.6.6-1_arm64.deb",
"product": "haproxy",
"version": "2.6.6",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "haproxy_2.0.25-1_x86_64.ipk",
"product": "haproxy",
"version": "2.0.25",
"other_products": ["lua"],
"other_products": ["lua", "openssl"],
},
]
5 changes: 5 additions & 0 deletions test/test_data/i2pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,34 @@
"package_name": "i2pd-2.42.1-1.4.aarch64.rpm",
"product": "i2pd",
"version": "2.42.1",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/opensuse/ports/armv6hl/tumbleweed/repo/oss/armv6hl/",
"package_name": "i2pd-2.42.1-1.4.armv6hl.rpm",
"product": "i2pd",
"version": "2.42.1",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/i/i2pd/",
"package_name": "i2pd_2.23.0-1_amd64.deb",
"product": "i2pd",
"version": "2.23.0",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/i/i2pd/",
"package_name": "i2pd_2.23.0-1_arm64.deb",
"product": "i2pd",
"version": "2.23.0",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "i2pd_2.24.0-1_x86_64.ipk",
"product": "i2pd",
"version": "2.24.0",
"other_products": ["openssl"],
},
]
3 changes: 3 additions & 0 deletions test/test_data/janus.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
"package_name": "janus-gateway-1.1.0-1.1.aarch64.rpm",
"product": "janus",
"version": "1.1.0",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/opensuse/ports/armv6hl/tumbleweed/repo/oss/armv6hl/",
"package_name": "janus-gateway-1.1.0-1.1.armv6hl.rpm",
"product": "janus",
"version": "1.1.0",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/j/janus/",
"package_name": "janus_0.9.2-1~bpo10+1_amd64.deb",
"product": "janus",
"version": "0.9.2",
"other_products": ["openssl"],
},
]
4 changes: 4 additions & 0 deletions test/test_data/libssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,28 @@
"package_name": "libssh-0.10.4-1.fc38.aarch64.rpm",
"product": "libssh",
"version": "0.10.4",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/",
"package_name": "libssh-0.10.4-1.fc38.i686.rpm",
"product": "libssh",
"version": "0.10.4",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/libs/libssh/",
"package_name": "libssh-4_0.10.4-2_amd64.deb",
"product": "libssh",
"version": "0.10.4",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/libs/libssh/",
"package_name": "libssh-4_0.10.4-2_arm64.deb",
"product": "libssh",
"version": "0.10.4",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
Expand Down
2 changes: 2 additions & 0 deletions test/test_data/minetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
"package_name": "minetest-5.7.0-2.fc39.aarch64.rpm",
"product": "minetest",
"version": "5.7.0",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/m/minetest/",
"package_name": "minetest_0.4.17.1+repack-1+deb10u1_amd64.deb",
"product": "minetest",
"version": "0.4.17.1",
"other_products": ["openssl"],
},
]
1 change: 1 addition & 0 deletions test/test_data/nginx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"package_name": "nginx-full_1.10.3-1+deb9u4_amd64.deb",
"product": "nginx",
"version": "1.10.3",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
Expand Down
1 change: 1 addition & 0 deletions test/test_data/nmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"package_name": "nmap_7.40-1_amd64.deb",
"product": "nmap",
"version": "7.40",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
Expand Down
4 changes: 3 additions & 1 deletion test/test_data/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@
"package_name": "rh-nodejs14-nodejs-14.16.0-1.el7.x86_64.rpm",
"product": "node.js",
"version": "14.16.0",
"other_products": ["libuv", "zlib"],
"other_products": ["libuv", "zlib", "openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/n/nodejs/",
"package_name": "nodejs_0.10.29~dfsg-2_amd64.deb",
"product": "node.js",
"version": "0.10.29",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "node_v8.16.1-1_x86_64.ipk",
"product": "node.js",
"version": "8.16.1",
"other_products": ["openssl"],
},
]
1 change: 1 addition & 0 deletions test/test_data/ntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"package_name": "ntp-4.2.8p15-3.fc33.x86_64.rpm",
"product": "ntp",
"version": "4.2.8p15",
"other_products": ["openssl"],
},
{
"url": "https://rpmfind.net/linux/mageia/distrib/5/x86_64/media/core/release/",
Expand Down
2 changes: 2 additions & 0 deletions test/test_data/ntpsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"package_name": "ntpsec-1.2.1-9.fc37.aarch64.rpm",
"product": "ntpsec",
"version": "1.2.1",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/n/",
"package_name": "ntpsec-1.2.1-9.fc37.i686.rpm",
"product": "ntpsec",
"version": "1.2.1",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/n/ntpsec/",
Expand Down
13 changes: 13 additions & 0 deletions test/test_data/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"%s (Library: %s)\nOpenSSL 1.0.2g 1 Mar 2016",
],
},
{
"product": "openssl",
"version": "0.9.8a",
"version_strings": [
"part of OpenSSL 0.9.8a 11 Oct 2005\n",
],
},
]
package_test_data = [
{
Expand Down Expand Up @@ -51,4 +58,10 @@
"product": "openssl",
"version": "1.1.1n",
},
{
"url": "http://downloads.sourceforge.net/gnuwin32/",
"package_name": "openssl-0.9.8h-1-bin.zip",
"product": "openssl",
"version": "0.9.8h",
},
]
2 changes: 2 additions & 0 deletions test/test_data/php.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"package_name": "php-cli-8.2.13-1.fc39.aarch64.rpm",
"product": "php",
"version": "8.2.13",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/p/php7.3/",
"package_name": "libphp7.3-embed_7.3.31-1~deb10u1_amd64.deb",
"product": "php",
"version": "7.3.31",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
Expand Down
3 changes: 3 additions & 0 deletions test/test_data/proftpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@
"package_name": "proftpd-1.3.8-0.4.rc4.el9.aarch64.rpm",
"product": "proftpd",
"version": "1.3.8rc4",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/epel/9/Everything/ppc64le/Packages/p/",
"package_name": "proftpd-1.3.8-0.4.rc4.el9.ppc64le.rpm",
"product": "proftpd",
"version": "1.3.8rc4",
"other_products": ["openssl"],
},
{
"url": "http://ftp.br.debian.org/debian/pool/main/p/proftpd-dfsg/",
"package_name": "proftpd-basic_1.3.5b-4+deb9u5_arm64.deb",
"product": "proftpd",
"version": "1.3.5b",
"other_products": ["openssl"],
},
]
4 changes: 4 additions & 0 deletions test/test_data/sofia_sip.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@
"package_name": "sofia-sip-1.13.9-1.fc38.aarch64.rpm",
"product": "sofia-sip",
"version": "1.13.9",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/s/sofia-sip/",
"package_name": "libsofia-sip-ua0_1.12.11+20110422.1-2_amd64.deb",
"product": "sofia-sip",
"version": "1.12.11",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/s/sofia-sip/",
"package_name": "libsofia-sip-ua0_1.12.11+20110422.1-2_armel.deb",
"product": "sofia-sip",
"version": "1.12.11",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/21.02.0/packages/x86_64/telephony/",
"package_name": "sofia-sip0_1.13.8-1_x86_64.ipk",
"product": "sofia-sip",
"version": "1.13.8",
"other_products": ["openssl"],
},
]
4 changes: 4 additions & 0 deletions test/test_data/stunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@
"package_name": "stunnel-5.66-1.1.aarch64.rpm",
"product": "stunnel",
"version": "5.66",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/opensuse/ports/armv6hl/tumbleweed/repo/oss/armv6hl/",
"package_name": "stunnel-5.66-1.1.armv6hl.rpm",
"product": "stunnel",
"version": "5.66",
"other_products": ["openssl"],
},
{
"url": "http://ftp.br.debian.org/debian/pool/main/s/stunnel4/",
"package_name": "stunnel4_5.39-2_amd64.deb",
"product": "stunnel",
"version": "5.39",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "stunnel_5.55-2_x86_64.ipk",
"product": "stunnel",
"version": "5.55",
"other_products": ["openssl"],
},
]
4 changes: 4 additions & 0 deletions test/test_data/tor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@
"package_name": "tor-0.4.7.10-4.1.riscv64.rpm",
"product": "tor",
"version": "0.4.7.10",
"other_products": ["openssl"],
},
{
"url": "http://rpmfind.net/linux/mageia/distrib/cauldron/aarch64/media/core/release/",
"package_name": "tor-0.4.7.10-2.mga9.aarch64.rpm",
"product": "tor",
"version": "0.4.7.10",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/t/tor/",
"package_name": "tor_0.2.9.16-1_arm64.deb",
"product": "tor",
"version": "0.2.9.16",
"other_products": ["openssl"],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "tor_0.4.5.10-1_x86_64.ipk",
"product": "tor",
"version": "0.4.5.10",
"other_products": ["openssl"],
},
]
2 changes: 2 additions & 0 deletions test/test_data/zabbix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"package_name": "zabbix-6.0.13-2.fc39.aarch64.rpm",
"product": "zabbix",
"version": "6.0.13",
"other_products": ["openssl"],
},
{
"url": "http://ftp.debian.org/debian/pool/main/z/zabbix/",
Expand All @@ -23,5 +24,6 @@
"package_name": "zabbix-server_4.0.37-1_x86_64.ipk",
"product": "zabbix",
"version": "4.0.37",
"other_products": ["openssl"],
},
]