From 99a792345b71638d1f8f6ab46f5e3a3ebabadee5 Mon Sep 17 00:00:00 2001 From: bashrc Date: Sun, 18 Jan 2026 18:09:55 +0000 Subject: [PATCH] More bad paths --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 0b795317b..87ed90028 100644 --- a/utils.py +++ b/utils.py @@ -3968,7 +3968,8 @@ def check_bad_path(path: str): path_lower = path.lower() bad_strings = ('..', '/.', '%2e%2e', '%252e%252e', - '/sftp.', '/sftp-', '/statistics') + '/sftp.', '/sftp-', '/statistics', + '/config/', 'settings.') # allow /.well-known/... if '/.' in path_lower: