MCP server that exposes ImageMagick image conversion functionality via the convert_image tool. This repository contains a proof-of-concept demonstrating command injection vulnerabilities.
This is a proof-of-concept RCE vulnerability demonstration, not a production MCP server. The single tool 'convert_image' has a minimal description (67 chars, within range but generic), and the input schema is present with three string parameters. However, the tool is explicitly designed to be exploitable, it passes user input directly to ImageMagick without sanitization, enabling command injection. The PoC demonstrates three injection vectors (input, options, output paths). No error handling, no validation, no security gates. The tool description does not warn of the destructive/dangerous nature. This server should never be deployed to production.
Converts an image using ImageMagick with specified options and output path
CRITICAL: Command injection vulnerability in all three parameters (inputPath, options, outputPath). User input is passed directly to ImageMagick spawn without sanitization, allowing arbitrary shell command execution.
No input validation or sanitization. Parameters accept arbitrary strings with no constraints, enums, or format validation. The tool description does not document expected formats or constraints.
Tool description (67 chars) is generic and does not warn of destructive behavior, security risks, or prerequisites. Does not state WHAT the tool does, WHEN to use it, or consequences of calling it.
No error handling or recovery guidance. Tool will fail silently or crash on invalid input, with no actionable error messages for the LLM to self-correct.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
No permission gates, audit logging, or scope declarations. A destructive tool that modifies the filesystem should require explicit authorization and log all invocations.