File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 340
340
"pixman" ,
341
341
"pjsip" ,
342
342
"png" ,
343
- "polarssl_fedora " ,
343
+ "polarssl " ,
344
344
"poppler" ,
345
345
"postgresql" ,
346
346
"ppp" ,
Original file line number Diff line number Diff line change 5
5
"""
6
6
CVE checker for polarssl
7
7
8
- This checker currently works on only fedora distribution, because of lack of common signatures
9
- in other distributions, with unsuccessful attempts made for CentOS and ubuntu distributions.
10
-
11
8
https://www.cvedetails.com/product/22470/Polarssl-Polarssl.html?vendor_id=12001
12
9
13
10
"""
14
11
from cve_bin_tool .checkers import Checker
15
12
16
13
17
- class PolarsslFedoraChecker (Checker ):
14
+ class PolarsslChecker (Checker ):
18
15
CONTAINS_PATTERNS = [
19
16
r"Bad usage of mbedtls_ssl_set_bio() or mbedtls_ssl_set_bio()" ,
20
17
r"You must use mbedtls_ssl_set_timer_cb() for DTLS" ,
@@ -25,9 +22,7 @@ class PolarsslFedoraChecker(Checker):
25
22
# r"mbedtls_x509_crt_check_extended_key_usage",
26
23
]
27
24
FILENAME_PATTERNS = [r"libpolarssl.so." ]
28
- VERSION_PATTERNS = [
29
- r"libpolarssl.so.([0-9]+\.[0-9]+\.[0-9]+)"
30
- ] # patterns like this aren't ideal
25
+ VERSION_PATTERNS = [r"([0-9]+\.[0-9]+\.[0-9]+)\r?\nPOLARSSL" ]
31
26
VENDOR_PRODUCT = [("polarssl" , "polarssl" )]
32
27
33
28
Original file line number Diff line number Diff line change 5
5
{
6
6
"product" : "polarssl" ,
7
7
"version" : "1.3.6" ,
8
- "version_strings" : ["libpolarssl.so. 1.3.6.debug " ],
8
+ "version_strings" : ["1.3.6\n POLARSSL " ],
9
9
}
10
10
]
11
11
package_test_data = [
14
14
"package_name" : "polarssl-1.3.7-2.fc21.x86_64.rpm" ,
15
15
"product" : "polarssl" ,
16
16
"version" : "1.3.7" ,
17
- }
17
+ },
18
+ {
19
+ "url" : "https://dl-cdn.alpinelinux.org/alpine/v3.1/main/x86_64/" ,
20
+ "package_name" : "polarssl-1.3.8-r1.apk" ,
21
+ "product" : "polarssl" ,
22
+ "version" : "1.3.8" ,
23
+ "other_products" : ["gcc" ],
24
+ },
18
25
]
You can’t perform that action at this time.
0 commit comments