← 返回 Skills 市场
Php Sql Fixer
作者
Xavier Mary
· GitHub ↗
· v1.0.0
· MIT-0
85
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install php-sql-fixer
功能描述
Detect SQL injection risks in PHP/Yaf projects and generate parameterized query fix patches. Scans for string concatenation in SQL, unsafe superglobal interp...
安全使用建议
This package mostly contains a reasonable SQL-scanner for PHP/Yaf, but it appears incomplete and somewhat sloppy. Before installing or running it: 1) Do not run anything as root or against production code — test on a cloned repo. 2) Verify the missing file: look for scripts/suggest_fix.php (referenced in SKILL.md); if absent, ask the publisher or obtain the helper before relying on automatic fixes. 3) Remove or update the hard-coded docker-compose path in the docs — it references the author's machine and will fail on your machine. 4) Inspect scripts/scan_sql.sh yourself (it uses grep) — it performs only local file scanning and prints a report; there are no network calls in the included files. 5) If you plan to apply fixes, review each suggested change manually and run php -l and your test suite in a safe environment. If the missing helper is supplied later, re-run a security review on that file before use.
功能分析
Type: OpenClaw Skill
Name: php-sql-fixer
Version: 1.0.0
The skill bundle is a legitimate security auditing tool designed to identify and suggest fixes for SQL injection vulnerabilities in PHP projects, specifically those using the Yaf framework. The 'scan_sql.sh' script uses grep to find common unsafe patterns like string concatenation and superglobal interpolation in SQL queries, while 'SKILL.md' and 'references/fix-patterns.md' provide clear instructions and documentation for an AI agent to triage and remediate these risks. Although the bundle contains a highly specific hardcoded path for a Docker configuration (/mnt/d/Users/Public/php20250819/docker-php7.3/docker-compose.yml), this appears to be an environment-specific setting for syntax verification rather than a malicious indicator. No evidence of data exfiltration, unauthorized execution, or prompt injection was found.
能力标签
能力评估
Purpose & Capability
Name and description match the included scanner logic and fix-patterns documentation. The declared required binaries (bash, grep, php) mostly make sense for scanning and for the referenced PHP helper, but the code bundle only contains a bash scanner and the PHP suggestion script referenced in SKILL.md is not present — a mismatch between claimed capabilities and included files.
Instruction Scope
SKILL.md stays within the stated domain (scan, triage, generate fixes) but instructs running a PHP helper (suggest_fix.php) that is not included and contains a hard-coded, author-specific docker-compose path (/mnt/d/Users/Public/.../docker-php7.3/docker-compose.yml). The docker path is unrelated to the skill itself and reveals a host-specific command that won't work for most users; this suggests poor hygiene or incomplete packaging. Other instructions (open files, check superglobals, run curl tests) are appropriate for the task.
Install Mechanism
Instruction-only skill with no install spec and no remote downloads — low install risk. The only included executable artifact is a bash scanner script; nothing is written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are requested. The skill only requires local binaries (bash, grep, php) which are proportional to a source-code scanner and PHP helper.
Persistence & Privilege
always:false, user-invocable true, and no code that modifies other skills or system configs. The skill does not request persistent privileges or autoregistration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install php-sql-fixer - 安装完成后,直接呼叫该 Skill 的名称或使用
/php-sql-fixer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of php-sql-fixer.
- Scans PHP/Yaf projects for SQL injection risks including string concatenation, unsafe superglobal use, and sprintf-based injection.
- Generates annotated before/after fix suggestions using parameterized query patterns.
- Supports PHP 7.3 and common Yaf DB conventions.
- Provides step-by-step workflow: scan, triage, suggest fixes, manual application, and verification.
- Includes fix pattern catalog and detailed false positive triage checklist.
元数据
常见问题
Php Sql Fixer 是什么?
Detect SQL injection risks in PHP/Yaf projects and generate parameterized query fix patches. Scans for string concatenation in SQL, unsafe superglobal interp... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。
如何安装 Php Sql Fixer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install php-sql-fixer」即可一键安装,无需额外配置。
Php Sql Fixer 是免费的吗?
是的,Php Sql Fixer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Php Sql Fixer 支持哪些平台?
Php Sql Fixer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Php Sql Fixer?
由 Xavier Mary(@xaviermary56)开发并维护,当前版本 v1.0.0。
推荐 Skills