mirror of https://gitlab.com/bashrc2/epicyon
More bad endings
parent
b66ecea6e0
commit
efca7f7b5c
4
utils.py
4
utils.py
|
|
@ -4126,7 +4126,7 @@ def check_bad_path(path: str):
|
||||||
'/sftp.', '/sftp-', '/statistics',
|
'/sftp.', '/sftp-', '/statistics',
|
||||||
'/config/', 'settings.', 'credentials',
|
'/config/', 'settings.', 'credentials',
|
||||||
'/packs/', '/backend/', '/apis/',
|
'/packs/', '/backend/', '/apis/',
|
||||||
'/laravel/', '/js/')
|
'/laravel/', '/js/', '/root/')
|
||||||
|
|
||||||
# allow /.well-known/...
|
# allow /.well-known/...
|
||||||
if '/.' in path_lower:
|
if '/.' in path_lower:
|
||||||
|
|
@ -4139,7 +4139,7 @@ def check_bad_path(path: str):
|
||||||
|
|
||||||
bad_endings = (
|
bad_endings = (
|
||||||
'.js', '.ts', '.py', '.php', '.bak', '.env', '.local', '.yml',
|
'.js', '.ts', '.py', '.php', '.bak', '.env', '.local', '.yml',
|
||||||
'.rs', '.ru'
|
'.rs', '.ru', '.old', '.backup', '~', '.ini'
|
||||||
)
|
)
|
||||||
if string_ends_with(path_lower, bad_endings):
|
if string_ends_with(path_lower, bad_endings):
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue