T09 · Insecure Skill Coding Practices
- Location
SKILL.md:22- Finding
Shell Command Injection Through Unsafe Interpolation into curl Commands
- Content
View full analysis
"}' ``` Verification request at `SKILL.md:34-38`: ```bash curl -s -X POST https://huozi.app/api/v1/auth/verify \ -H "Content-Type: application/json" \ -d '{"email": "", "code": ""}' ``` Workspace setup request at `SKILL.md:48-52`: ```bash curl -s -X POST https://huozi.app/api/v1/auth/setup \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"workspace_slug": ""}' ``` Markdown publishing request at `SKILL.md:67-70`: ```bash curl -s -X POST https://huozi.app/api/v1/pages \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"title": "", "slug": "<slug>", "content": "<markdown>"}' ``` HTML publishing request at `SKILL.md:78-81`: ```bash curl -s -X POST https://huozi.app/api/v1/pages \ -H "Authorization: Bearer <api_key>" \ -H "Content-Type: application/json" \ -d '{"title": "<title>", "slug": "<slug>", "content": "<html>", "content_type": "html"}' ``` ### Technical Analysis The skill instructs the agent to substitute user-controlled email addresses, verification codes, workspace slugs, titles, page slugs, Markdown, and HTML directly into JSON enclosed by shell single quotes. In POSIX-compatible shells, a single quote contained in an interpolated value terminates the quoted argument. Subsequent characters can consequently be interpreted as shell operators or commands rather than request data. This construction is also not a valid general-purpose JSON serialization mechanism ...[truncated 2339 chars]- Remediation
View remediation
