Commit Graph

1 Commits

Author SHA1 Message Date
Marek Miklewicz b4fbd46cc1 Harden restore-archive extraction against path traversal
extract_payload_from_archive() relied entirely on tar's own default
path-traversal protection when extracting a DirectAdmin restore
archive to locate the plugin's backup/alt_mysql payload. Explicitly
inspect the archive listing first and refuse to extract at all if any
member has an absolute path or a ".." segment, rather than trusting
that the wildcard extraction pattern happens to filter out an unsafe
member.
2026-07-04 22:53:21 +02:00