mirror of https://gitlab.com/bashrc2/epicyon
Replace invalid well-known path
parent
8863447774
commit
60e5a1d5ba
|
@ -263,6 +263,10 @@ def daemon_http_get(self) -> None:
|
||||||
http_402(self)
|
http_402(self)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# replace invalid .well-known path, prior to checking for suspicious paths
|
||||||
|
if self.path.startswith('/users/.well-known/'):
|
||||||
|
self.path = self.path.replace('/users/.well-known/', '/.well-known/')
|
||||||
|
|
||||||
# suspicious headers
|
# suspicious headers
|
||||||
if contains_suspicious_headers(self.headers):
|
if contains_suspicious_headers(self.headers):
|
||||||
print('GET HTTP suspicious headers ' + str(self.headers))
|
print('GET HTTP suspicious headers ' + str(self.headers))
|
||||||
|
|
Loading…
Reference in New Issue