mirror of https://gitlab.com/bashrc2/epicyon
More bad paths
parent
876e2eeb91
commit
392c9b34cd
3
utils.py
3
utils.py
|
|
@ -3967,7 +3967,8 @@ def check_bad_path(path: str):
|
||||||
"""
|
"""
|
||||||
path_lower = path.lower()
|
path_lower = path.lower()
|
||||||
|
|
||||||
bad_strings = ('..', '/.', '%2e%2e', '%252e%252e')
|
bad_strings = ('..', '/.', '%2e%2e', '%252e%252e',
|
||||||
|
'/sftp.', '/sftp-')
|
||||||
|
|
||||||
# allow /.well-known/...
|
# allow /.well-known/...
|
||||||
if '/.' in path_lower:
|
if '/.' in path_lower:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue