Skip to content

Commit

Permalink
Create CVE-2023-44487.py
Browse files Browse the repository at this point in the history
  • Loading branch information
netpicker committed Feb 8, 2024
1 parent 466eaa3 commit 9b6e5ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CVE/Cisco XR/CVE-2023-44487.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from comfy.compliance import medium


@medium(
name='rule_cve_2023_44487',
platform=['cisco_xr'],
commands=dict(version='show version | include Software')
)
def rule_cve_2023_44487(configuration, commands, device):
import re
pattern = "Version\s([0-9.]+)"
match = re.search(pattern, str(commands.version))
s_version = match.group(1)
version = tuple(map(int, s_version.split('.')))
assert version > (7, 11, 2)

0 comments on commit 9b6e5ee

Please sign in to comment.