Fix issue on path transversal backups linux

This commit is contained in:
amcmanu3 2022-06-21 17:35:34 -04:00
parent 7074dd18fb
commit 97900cd283

View File

@ -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."