mirror of https://gitlab.com/bashrc2/epicyon
More generic wordpress path
parent
b62ebad9d1
commit
fbdd9a301b
2
utils.py
2
utils.py
|
|
@ -3975,7 +3975,7 @@ def check_bad_path(path: str):
|
||||||
path_lower.startswith('/users/.well-known/'):
|
path_lower.startswith('/users/.well-known/'):
|
||||||
bad_strings = ('..', '%2e%2e', '%252e%252e')
|
bad_strings = ('..', '%2e%2e', '%252e%252e')
|
||||||
|
|
||||||
if path_lower.startswith('/wp-content'):
|
if path_lower.startswith('/wp-'):
|
||||||
print('WARN: this is not wordpress ' + path)
|
print('WARN: this is not wordpress ' + path)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue