Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 05a77a37 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 20246898
No related branches found
No related tags found
No related merge requests found
...@@ -97,4 +97,4 @@ IMPORTANT: If you update from a previous version, you need first to uninstall th ...@@ -97,4 +97,4 @@ IMPORTANT: If you update from a previous version, you need first to uninstall th
2022-05-06: BAKERY: fixed not enough values to unpack in exclude_paths_bulk (THX to Rene Calmer[at]forum.checkmk.com) 2022-05-06: BAKERY: fixed not enough values to unpack in exclude_paths_bulk (THX to Rene Calmer[at]forum.checkmk.com)
2022-10-24: replace "\n" with "\N" in detail output to avoid linebreaks in file names with "\n" (usually in Windows only) 2022-10-24: replace "\n" with "\N" in detail output to avoid linebreaks in file names with "\n" (usually in Windows only)
2022-11-30: WATO: fixed CheckParameterRulespecWithoutItem (from CheckParameterRulespecWithItem) 2022-11-30: WATO: fixed CheckParameterRulespecWithoutItem (from CheckParameterRulespecWithItem)
2023-02-17: fixed non digit version string handling i.e: "1.2.17-cloudera1"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# 2022-02-07: added state_not_fixed option for per cve plugin # 2022-02-07: added state_not_fixed option for per cve plugin
# 2022-02-14: added files_safe counter # 2022-02-14: added files_safe counter
# 2022-10-24: replace "\n" with "\N" in details output to avoid linebreaks in filenames with "\n" (usually in Windows only) # 2022-10-24: replace "\n" with "\N" in details output to avoid linebreaks in filenames with "\n" (usually in Windows only)
# # 2023-02-17: fixed non digit version string handling i.e: "1.2.17-cloudera1"
# sample agent output # sample agent output
# <<<cve_2021_44228_log4j:sep(0);cached(1639746030,600)>>> # <<<cve_2021_44228_log4j:sep(0);cached(1639746030,600)>>>
...@@ -565,16 +565,20 @@ def _get_affected(version: str, affected: str) -> bool: ...@@ -565,16 +565,20 @@ def _get_affected(version: str, affected: str) -> bool:
_version = version.split('.') _version = version.split('.')
_affected = affected.split('.') _affected = affected.split('.')
if int(_version[0]) < int(_affected[0]): if not _version[2].isdigit():
return True _version[2] = _version[2].split('-')[0]
elif int(_version[0]) > int(_affected[0]):
return False if _version[0].isdigit() and _version[1].isdigit() and _version[2].isdigit():
elif int(_version[1]) < int(_affected[1]): if int(_version[0]) < int(_affected[0]):
return True return True
elif int(_version[1]) > int(_affected[1]): elif int(_version[0]) > int(_affected[0]):
return False return False
elif int(_version[2]) <= int(_affected[2]): elif int(_version[1]) < int(_affected[1]):
return True return True
elif int(_version[1]) > int(_affected[1]):
return False
elif int(_version[2]) <= int(_affected[2]):
return True
return False return False
......
No preview for this file type
...@@ -35,9 +35,8 @@ ...@@ -35,9 +35,8 @@
'plugins/wato/cve_2021_44228_log4j.py', 'plugins/wato/cve_2021_44228_log4j.py',
'plugins/views/inv_cve_2021_22448_log4j.py']}, 'plugins/views/inv_cve_2021_22448_log4j.py']},
'name': 'cve_2021_44228_log4j', 'name': 'cve_2021_44228_log4j',
'num_files': 9,
'title': 'CVE-2021-44228-log4j scanner plugin', 'title': 'CVE-2021-44228-log4j scanner plugin',
'version': '20221130.v0.1.4c', 'version': '20230217.v0.1.4d',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2021.09.20', 'version.packaged': '2.1.0p21',
'version.usable_until': None} 'version.usable_until': None}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment