|
|
|
|
@ -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:
|
|
|
|
|
|