Php Archive Extract Audit
PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。
Install
npx skills add NeverSight/learn-skills.dev --skill php-archive-extract-auditgit clone --depth 1 https://github.com/NeverSight/learn-skills.dev.git /tmp/learn-skills.dev
mkdir -p ~/.claude/skills
cp -r /tmp/learn-skills.dev/data/skills-md/0xshe/php-code-audit-skill/php-archive-extract-audit ~/.claude/skills/php-archive-extract-auditPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# PHP 归档解压路径穿越审计(php-archive-extract-audit)
分析 PHP 项目中“解压/提取归档文件到磁盘目录”的实现逻辑。重点审计 Zip Slip 类问题:攻击者可通过精心构造归档条目名(entry name/path)使最终写入落点逃逸目标目录。
## 分级与编号
- 详见:`shared/SEVERITY_RATING.md`
- 漏洞编号:`{C/H/M/L}-ARCHIVE-{序号}`
## ARCHIVE Sink(必做)
识别并追踪归档提取调用点,至少包括:
- `ZipArchive->extractTo($destination, {value})`
- `ZipArchive->extract($destination, {value})`(若项目使用封装)
- `PharData->extractTo($destination, {value})`
- `Archive_Tar->extractTo($destination, {value})`(若项目使用 PEAR/等价封装)
- `Archive_Tar->extract($destination, {value})`(若项目使用封装)
- 自定义解压封装:最终仍对每个 entry name 做“拼接到 destination 目录并落盘”
## 必检证据点(强制:trace 契约对齐)
每条 ARCHIVE 疑似漏洞必须逐项引用 `php-route-tracer` trace 输出中 `## 9) Sink Evidence Type Checklist` 的 **ARCHIVE 行**对应证据要点(允许状态为待验证,但证据引用必须存在):
1. `EVID_ARCHIVE_EXTRACT_CALLSITE`:归档解压/提取调用点证据(extractTo/extractTo 包装函数入口)
2. `EVID_ARCHIVE_ENTRY_NAME_SOURCE`:entry name/path 来源证据(来自归档内容的 entry 列表,或由用户输入构造的条目路径)
3. `EVID_ARCHIVE_ENTRY_SANITIZATION`:条目路径净化/归一化证据(去除/拒绝 `../`、绝对路径、盘符等路径穿越片段;以及如何处理编码/同形字符)
4. `EVID_ARCHIVE_EXTRACT_BASE_DIR`:解压基目录证据(destination/base directory 的来源与传入方式)
5. `EVID_ARCHIVE_FINAL_TARGET`:最终解析落点证据(entry join 后的 resolved final path,以及 base 目录约束判定是否成立)
## 可利用性与漏洞成立条件(必做)
必须输出并判断:
- entry name/path 是否可被攻击者控制(至少来自 attacker's crafted zip 的条目)
- 基目录约束是否真正执行到“最终路径解析之后”(例如 `realpath` + 前缀校验,而不是仅字符串替换)
- 是否存在绕过:双重编码、混合分隔符、windows 盘符、绝对路径、尾部/空白/控制字符、Unicode 同形字符等
- 写入是否真的发生在目标目录之外(或至少能够证明 final target 逃逸)
## tracer 触发条件(必做)
当满足任一条件时必须依赖 `php-route-tracer`:Details
- Skill name
php-archive-extract-audit- Repository
- NeverSight/learn-skills.dev
- Path
data/skills-md/0xshe/php-code-audit-skill/php-archive-extract-audit/SKILL.md- Repo updated
- 18 November 2026
FAQ
What does the Php Archive Extract Audit skill do?
PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。
How do I install the Php Archive Extract Audit skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add NeverSight/learn-skills.dev --skill php-archive-extract-audit. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Php Archive Extract Audit popular?
It lives in NeverSight/learn-skills.dev, which has 223 GitHub stars and 42 forks.
Related skills
Council
223NeverSight/learn-skills.dev
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Megaeth Developer
223NeverSight/learn-skills.dev
End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.
Openclaw Stock Skill
223NeverSight/learn-skills.dev
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
Php Audit Pipeline
223NeverSight/learn-skills.dev
PHP Web 全链路白盒代码安全审计流水线(多文件版编排)。作为总编排参考,按 Sink 类型调用各子审计 skill(`php-route-mapper/php-auth-audit/php-route-tracer/php-*-audit`),并复用统一输出与分级标准。
Orca CLI
223NeverSight/learn-skills.dev
Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser through the `orca` CLI. Use when the user says "$orca-cli", "Orca worktree", "child worktree", "spawn codex/claude in a worktree", "read/wait/send Orca terminal", "handoff" / "handover" / "give this to another agent", "Orca browser", "orca artifacts", or "share skills". Prefer it over raw git worktree, ad hoc PTYs, or Computer Use when Orca state is involved. Use Computer Use only for external windows or desktop UI that needs OS-level control,
Php Auth Audit
223NeverSight/learn-skills.dev
PHP Web 源码鉴权机制审计工具。从源码中识别所有认证/鉴权实现并分析风险,输出路由-鉴权映射与漏洞分析(含 PoC 与修复建议)。
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.