Zip Slip (Archive Path Traversal)
Detects insecure ZIP/TAR extraction that does not validate entry paths, allowing directory traversal outside the extraction target.
от zakirkun★ 40 звёзд на GitHub
Установить Zip Slip (Archive Path Traversal) в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Zip Slip (Archive Path Traversal)
Overview
Zip Slip is a directory traversal vulnerability in archive extraction. Malicious archives can contain entry names like ../../etc/cron.d/evil or ../webroot/shell.php. When extracted without path validation, files are written outside the intended directory, potentially achieving:
- Remote Code Execution (writing to cron, web shell in webroot)
- Configuration overwrite
- Sensitive file replacement
This affects ZIP, TAR, JAR, WAR, and other archive formats.
Detection Strategy
ZipFile.extractall()in Python without path validationunzip.extract()in Java without checking entry name for..archive.ExtractAll()in Go without normalized path check
Remediation
Always normalize and validate the target path before writing each archive entry.
Vulnerable (Java):
ZipEntry entry = zipFile.getEntry(name);
File dest = new File(targetDir, entry.getName());
// entry.getName() could be "../../etc/cron.d/evil"
Safe (Java):
File dest = new File(targetDir, entry.getName()).getCanonicalFile();
if (!dest.toPath().startsWith(targetDir.toPath())) {
throw new IOException("Zip Slip detected: " + entry.getName());
}
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Zip Slip (Archive Path Traversal)?
Detects insecure ZIP/TAR extraction that does not validate entry paths, allowing directory traversal outside the extraction target.
Как установить скилл Zip Slip (Archive Path Traversal)?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Zip Slip (Archive Path Traversal) запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…