mirror of https://gitlab.com/bashrc2/epicyon
More bad strings
parent
5f1b7df5d0
commit
372753db5c
3
utils.py
3
utils.py
|
|
@ -3991,7 +3991,8 @@ 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.', 'credentials')
|
'/config/', 'settings.', 'credentials',
|
||||||
|
'/packs/', '/backend/', '/apis/')
|
||||||
|
|
||||||
# allow /.well-known/...
|
# allow /.well-known/...
|
||||||
if '/.' in path_lower:
|
if '/.' in path_lower:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue