使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/smartworldarafath/rea_skill --skill payloads-zip-slip开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Zip Slip Payloads
Source: PayloadsAllTheThings/Zip Slip Category:payloads-research| Skill ID:payloads-zip-slip
Overview
Zip slip archive traversal payloads for arbitrary file write via malicious ZIP/TAR archives.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the Zip Slip Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
Workflow
1. Recon & Identification
- Identify the target technology stack and injection points
- Enumerate endpoints, parameters, and input vectors
- Determine applicable payload categories from the reference below
2. Payload Selection
- Browse the PATT payload library for the attack class
- Select encoding-appropriate payloads for the target environment
- Consider WAF bypass variants and obfuscation techniques
3. Exploitation (Authorized Only)
- Test payloads in order: passive → active → escalation
- Document every payload tested and its response
- Capture PoC evidence (screenshots, HTTP logs, curl output)
4. Verification & Reporting
- Confirm the vulnerability with a clean minimal PoC
- Map findings to CVE/CWE where applicable
- Report with remediation recommendations and code fixes
Full PATT Reference
Zip Slip
The vulnerability is exploited using a specially crafted archive that holds directory traversal filenames (e.g. ../../shell.php). The Zip Slip vulnerability can affect numerous archive formats, including tar, jar, war, cpio, apk, rar and 7z. The attacker can then overwrite executable files and either invoke them remotely or wait for the system or user to call them, thus achieving remote command execution on the victim’s machine.
Summary
Tools
- ptoomey3/evilarc - Create tar/zip archives that can exploit directory traversal vulnerabilities
- usdAG/slipit - Utility for creating ZipSlip archives
Methodology
The Zip Slip vulnerability is a critical security flaw that affects the handling of archive files, such as ZIP, TAR, or other compressed file formats. This vulnerability allows an attacker to write arbitrary files outside of the intended extraction directory, potentially overwriting critical system files, executing malicious code, or gaining unauthorized access to sensitive information.
Example: Suppose an attacker creates a ZIP file with the following structure:
malicious.zip
├── ../../../../etc/passwd
├── ../../../../usr/local/bin/malicious_script.shWhen a vulnerable application extracts malicious.zip, the files are written to /etc/passwd and /usr/local/bin/malicious_script.sh instead of being contained within the extraction directory. This can have severe consequences, such as corrupting system files or executing malicious scripts.
- Using ptoomey3/evilarc:
python evilarc.py shell.php -o unix -f shell.zip -p var/www/html/ -d 15- Creating a ZIP archive containing a symbolic link:
ln -s ../../../index.php symindex.txt
zip --symlinks test.zip symindex.txtFor a list of affected libraries and projects, visit snyk/zip-slip-vulnerability
References
REA MCP Integration
// REA MCP — Automated payload injection via REA tools
// Use analyze_function, procedure_pseudo_code, or observe_native_calls
// to identify injection sinks, then apply payloads from this skill.Legal Notice
⚠️ Authorized Use Only. All payloads in this skill are for security research, penetration testing with written permission, CTF competitions, and defensive study. Unauthorized use against systems you do not own or have explicit permission to test is illegal.