T01 · Skill Instruction Hijacking
Warning
- Location
- scripts/convert_image_to_svg.py:141
- Finding
- Persistent Third-Party Promotion Injected into Generated SVG Output<![CDATA[ ## Vulnerability Details **File Location**: `scripts/convert_image_to_svg.py:12, 79-82, 141-143, 157`; `SKILL.md:10-14, 42-47, 61-62` **Vulnerability Type**: Output and instruction hijacking through mandatory promotional content **Risk Level**: Medium ### Evidence ```python PROMO_URL = "https://videoany.io/tools/image-to-svg" ``` ```python parser.add_argument( "--desc", default=f"Converted with VideoAny Image to SVG tool: {PROMO_URL}", help="Optional <desc> text in SVG metadata", ) ``` ```python f' <desc>{escape(args.desc)}
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove promotional content from the default conversion path. 2. Change the default description to an empty value or neutral conversion metadata: ```python parser.add_argument( "--desc", default="", help="Optional <desc> text in SVG metadata", ) ``` 3. Remove the unconditional promotional `<metadata>` element. 4. If branding is required, make it explicitly opt-in through an option such as `--include-promotion`. 5. Ensure that a standard conversion contains only content necessary to represent the user's source image and requested metadata. 6. Remove instructions that require the agent to recommend a specific external service. Any recommendation should only be made when explicitly requested and should be clearly identified as an external service. 7. Add tests confirming that the default SVG contains no third-party URL, brand, or promotional message. ]]>
