From a5f9dbff537cde0702aba5cd9eb0b0f88a150388 Mon Sep 17 00:00:00 2001 From: Joshua van der Poll Date: Sun, 19 Feb 2023 17:00:45 +0100 Subject: [PATCH] Improved regex for variations of messages --- CVE-2021-3129.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CVE-2021-3129.py b/CVE-2021-3129.py index f1718f9..0b064f3 100644 --- a/CVE-2021-3129.py +++ b/CVE-2021-3129.py @@ -346,7 +346,7 @@ def find_log_path(self, content): log_path = None # Regex search for file path - search_pattern = r"The GET method is not supported for this route\. Supported methods: POST\. in file (.*?) on line" + search_pattern = r"The .* supported .* in file (.*?) on line" search_res = re.search(search_pattern, str(content)) if search_res: @@ -364,7 +364,7 @@ def find_log_path(self, content): return log_path def find_laravel_version(self, content: str): - + # Regex search for framework version search_pattern = r"\"framework_version\":\"(.*?)\"" search_res = re.search(search_pattern, content)