diff --git a/lib/request/connect.py b/lib/request/connect.py index 52cb085db..83162629e 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -725,7 +725,7 @@ class Connect: if not response and removeReflection: page = removeReflectiveValues(page, payload) - kb.permissionFlag = re.search(r"(command|permission) denied", page or "", re.I) is not None + kb.permissionFlag = re.search(r"(command|permission|access)\s*(was|is)?\s*denied", page or "", re.I) is not None if content or response: return page, headers