mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Fix issue on path transversal backups linux
This commit is contained in:
parent
7074dd18fb
commit
97900cd283
@ -1520,7 +1520,7 @@ class PanelHandler(BaseHandler):
|
||||
== self.helper.wtol_path(
|
||||
os.path.join(self.helper.backup_path, server_obj.server_uuid)
|
||||
)
|
||||
and self.helper.wtol_path(self.controller.project_root) in backup_path
|
||||
and backup_path.startswith(self.helper.wtol_path(self.controller.project_root))
|
||||
):
|
||||
self.redirect(
|
||||
"/panel/error?error=Nefarious activities detected."
|
||||
|
Loading…
x
Reference in New Issue
Block a user