mirror of https://gitlab.com/bashrc2/epicyon
Check for encoded paths
parent
73a5c0705a
commit
f5cb817d40
5
utils.py
5
utils.py
|
|
@ -4144,6 +4144,11 @@ def check_bad_path(path: str):
|
|||
"""
|
||||
path_lower = path.lower()
|
||||
|
||||
if '%' in path:
|
||||
sections = path.split('%')
|
||||
if len(sections) > 1:
|
||||
return True
|
||||
|
||||
bad_strings = [
|
||||
'..', '/.', '%2e%2e', '%252e%252e', '/sftp.', '/sftp-', '/statistics',
|
||||
'/config/', 'settings.', 'credentials', '/packs/', '/backend/',
|
||||
|
|
|
|||
Loading…
Reference in New Issue