php-archive-extract-audit
CommunityAudit PHP archive extraction for Zip Slip risks.
Author0xShe
Version1.0.0
Installs0
System Documentation
What problem does it solve?
分析和審計 PHP 專案中解壓/提取歸檔時的路徑穿越風險(Zip Slip),識別 entry name 與 destination 的拼接、基礎目錄約束的落實與否,並輸出可觀測的等級與修復建議。
Core Features & Use Cases
- 對 ZIP、PHAR、TAR 等歸檔解壓流程進行靜态/動态分析,識別可能的路徑穿越點與未經過濾的 entry name。
- 跟踪解压调用点(如 extractTo/extract、PharData::extractTo 等),並驗證終點是否真正落在基礎目錄內,輸出證據鏈與修復指引。
- 典型用例:在有用戶上傳的歸檔或可下載的歸檔中,判定解壓操作是否會寫入未授權目錄,並提供可觀測 PoC 與修復建議。
Quick Start
Run a PHP archive extraction audit to detect Zip Slip risks and produce remediation guidance.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: php-archive-extract-audit Download link: https://github.com/0xShe/PHP-Code-Audit-Skill/archive/main.zip#php-archive-extract-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.