Skip to content

Commit

Permalink
fix: update tor signature (#2681)
Browse files Browse the repository at this point in the history
Update tor signature to avoid catching the following string in tor
0.4.5.10 binary:

The v0 control protocol is not supported by Tor 0.1.2.17 and later; upgrade your controller.

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Feb 13, 2023
1 parent 0e1971c commit 93c110c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/tor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class TorChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"Tor ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)"]
VERSION_PATTERNS = [r"on Tor ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)"]
VENDOR_PRODUCT = [
("debian", "tor"),
("tor", "tor"),
Expand Down
2 changes: 1 addition & 1 deletion test/test_data/tor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{"product": "tor", "version": "0.4.7.10", "version_strings": ["Tor 0.4.7.10"]}
{"product": "tor", "version": "0.4.7.10", "version_strings": ["on Tor 0.4.7.10"]}
]
package_test_data = [
{
Expand Down

0 comments on commit 93c110c

Please sign in to comment.