0xshe/php-code-audit-skill/php-cmd-audit
Claude Code and agent skill by 0xshe/php-code-audit-skill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
PHP Web 源码命令注入审计工具。识别命令执行 Sink(exec/system/shell_exec 等),追踪用户输入进入命令拼接,输出可利用性分级、PoC 与修复建议(禁止省略)。
Install
npx vskill@latest install 0xshe/php-code-audit-skill/php-cmd-auditSKILL.md
The same SKILL.md was published earlier as qinian11/tgsec-qtzuu/php-cmd-audit.
PHP 命令注入审计(php-cmd-audit)
分析 PHP 项目源码,识别系统命令执行相关代码,并追踪用户输入到命令构造点,验证是否存在命令注入风险。
CRITICAL
- 必须使用数据流链证据判定可利用性
- 禁止省略:不得出现任何省略占位符;每条条目必须包含完整的证据链与可观测验证框架
- 每条高危/中危条目必须含:位置证据 + Source→Sink 数据流链 + 可利用前置条件 + 可执行 PoC + 修复建议
分级与编号
- 详见
shared/SEVERITY_RATING.md - 漏洞编号:
{C/H/M/L}-CMD-{序号}
命令执行 Sink(必做)
识别以下函数/语法:
exec/system/shell_exec/passthruproc_open/popen/pcntl_exec- 反引号语法:`
cmd`
危险模式:
- 命令字符串通过拼接包含用户输入(GET/POST/Body/参数字段)
- 未做白名单/未做 shell 转义,尤其包含
;|&、$()、反引号、换行等
追踪与验证(必做)
触发 php-route-tracer 的条件:
- 命令字符串由多个变量组成
- 存在参数经过 JSON 解码/多层传递
- 命令构造被 if/try 分支影响
报告输出
输出到:
漏洞条目模板(强制)
POST {完整路径} HTTP/1.1 Host: {host} {必要 Cookie/Auth}
{Payload}
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingphp-cmd-audit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xshe/php-code-audit-skill/php-cmd-audit)