T09 · Insecure Skill Coding Practices
- Location
scripts/solve-captcha.js:81- Finding
Shell Command Injection Through Unsanitized Command-Line Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This CAPTCHA/image-analysis skill has legitimate vision-use pieces, but it also enables CAPTCHA bypass and ships an unsafe script that can upload unintended screenshots and allow command injection.
Review carefully before installing. Do not use this for CAPTCHA or slider challenges unless you are certain it is allowed for that site and account. For benign OCR or screenshot analysis, provide only explicit, reviewed image paths, redact sensitive content first, and avoid running the included helper until the command-injection bug and automatic screenshot fallback are fixed.
scripts/solve-captcha.js:81Shell Command Injection Through Unsanitized Command-Line Arguments
scripts/solve-captcha.js:51Automatic Disclosure of an Unintended Browser Screenshot
The script builds a shell command with both prompt and imagePath interpolated directly into a string passed to execSync. Because these values come from command-line arguments and are not safely escaped, an attacker can inject shell metacharacters and execute arbitrary commands on the host, which is far more dangerous than the stated image-recognition purpose.
The skill description is broad enough to trigger on general image analysis, screenshot extraction, and CAPTCHA-related tasks, which increases the chance the agent will invoke it in contexts involving sensitive visual data or prohibited automation. Broad activation criteria are especially risky here because the skill explicitly covers CAPTCHA solving, making accidental misuse more likely.
The skill directly provides a workflow for using vision analysis to solve CAPTCHA and slider challenges, which are access-control and anti-abuse mechanisms. Enabling automated or assisted CAPTCHA solving materially supports bypass of protections intended to prevent scripted access, fraud, and account abuse.
The documentation instructs users to send screenshots or image paths to an external vision model without warning that images may contain sensitive information such as credentials, personal data, or internal application content. This creates a real risk of unintended data exfiltration to a third-party service.
The trigger list includes broad phrases such as '图片识别' and '视觉分析', which can match many unrelated user intents and cause the skill to activate unexpectedly. In this skill’s context, unintended activation is more concerning because it performs captcha and image-analysis tasks, which could route screenshots or sensitive visual content to the skill when the user did not specifically request captcha handling.
The script sends the selected image to an external vision service (mcporter call ... understand_image) without any user-facing notice, consent flow, or minimization of potentially sensitive screenshot contents. Since the tool auto-selects recent browser screenshots, it may exfiltrate credentials, personal data, or session-related information from images users did not explicitly intend to upload.