mirror of https://gitlab.com/bashrc2/epicyon
Extra bad path
parent
cd583deadb
commit
477ca609a8
2
utils.py
2
utils.py
|
|
@ -3969,7 +3969,7 @@ def check_bad_path(path: str):
|
||||||
|
|
||||||
bad_strings = ('..', '/.', '%2e%2e', '%252e%252e',
|
bad_strings = ('..', '/.', '%2e%2e', '%252e%252e',
|
||||||
'/sftp.', '/sftp-', '/statistics',
|
'/sftp.', '/sftp-', '/statistics',
|
||||||
'/config/', 'settings.')
|
'/config/', 'settings.', 'credentials')
|
||||||
|
|
||||||
# allow /.well-known/...
|
# allow /.well-known/...
|
||||||
if '/.' in path_lower:
|
if '/.' in path_lower:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue