Skip to content

Commit

Permalink
Update affected versions range.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmasdoufi-ol committed Dec 20, 2024
1 parent ca1131f commit 0978c0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/exploits/cve_2024_51479.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
VERSION_PATTERN = re.compile(r't\.version="(\d+\.\d+(?:\.\d+)?)"')
MAX_VULNERABLE_VERSION = version.parse("14.2.14")
MIN_VULNERABLE_VERSION = version.parse("9.5.5")


def _fetch_chunk_file(target_url: str, chunk_path: str) -> str | None:
Expand Down Expand Up @@ -92,7 +93,9 @@ def check(self, target: definitions.Target) -> list[definitions.Vulnerability]:
extracted_version = _extract_version(chunk_content)
if (
extracted_version is not None
and version.parse(extracted_version) <= MAX_VULNERABLE_VERSION
and MIN_VULNERABLE_VERSION
<= version.parse(extracted_version)
<= MAX_VULNERABLE_VERSION
):
vulnerability = self._create_vulnerability(target)
vulnerabilities.append(vulnerability)
Expand Down

0 comments on commit 0978c0d

Please sign in to comment.