You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[slack-19.0]: backupengine: disallow path traversals via backup MANIFEST on restore (vitessio#19470) (#806)
* `backupengine`: disallow path traversals via backup `MANIFEST` on restore (vitessio#19470)
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
* Address dir traversal in file backup storage `.ListBackups(...)` (vitessio#18814)
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
* fix for upstream cherry-pick
---------
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Co-authored-by: Tim Vaillancourt <tim@timvaillancourt.com>
fs.StringVar(&builtinIncrementalRestorePath, "builtinbackup-incremental-restore-path", builtinIncrementalRestorePath, "the directory where incremental restore files, namely binlog files, are extracted to. In k8s environments, this should be set to a directory that is shared between the vttablet and mysqld pods. The path should exist. When empty, the default OS temp dir is assumed.")
168
169
}
169
170
170
-
// fullPath returns the full path of the entry, based on its type
171
+
// fullPath returns the full path of the entry, based on its type.
172
+
// It validates that the resolved path does not escape the base directory
173
+
// via path traversal (e.g. "../../" sequences in fe.Name).
0 commit comments