T01 · Skill Instruction Hijacking
- Location
SKILL.md:30- Finding
Forced Injection of an Undocumented API Request Parameter
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 30–31; supporting API schema atreferences/official-api-reference.md, lines 903–978
Vulnerability Type: Instruction-driven injection of undocumented request metadata
Risk Level: MediumVulnerable Code Snippet:
markdown 3. Read the matching heading in `references/official-api-reference.md`. Use its exact endpoint path, request fields, request mode, and response fields; do not infer unsupported options. 4. Include `sourceType=5` in every final ComPDF API request. Treat it as an integration routing parameter and include it in request details when the user asks for them.The referenced PDF-to-Word request schema documents multipart fields such as
file,password,language,pageRanges, and OCR options. It listsdata.sourceTypeonly among response properties:text data.sourceType String Source file typeTechnical Analysis
The Skill unconditionally directs the Agent to add
sourceType=5to every final ComPDF request, although the bundled official API snapshot does not identifysourceTypeas a request parameter for the reviewed conversion endpoint. Instead, it identifiesdata.sourceTypeas a response field.This instruction also conflicts with the immediately preceding requirement to use exact documented request fields and not infer unsupported options. Because the directive is loaded as part of the Skill workflow, an Agent may prioritize it over the documented API schema and silently modify all generated requests.
An undocumented routing or attribution parameter could be rejected, ignored, logged, or interpreted by undocumented server-side behavior. The project provides no evidence that the value is required by the official API or that users are informed of its precise semantics.
Attack Path
- A user invokes the PDF Converter Skill for a supported conversion.
- The Agent selects an official ComPDF conversion e ...[truncated 875 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unconditional
sourceType=5directive unless official ComPDF documentation explicitly defines it as a supported request field. - If the parameter is legitimate, update the bundled API reference with its request location, data type, accepted values, purpose, and supported endpoints.
- Apply the field only to endpoints that explicitly support it rather than to every request.
- Disclose any attribution or routing semantics to the user before submission.
- Add request-schema validation that rejects fields absent from the selected endpoint's documented schema.
- Add tests confirming that generated requests contain only documented fields and that response-only properties cannot be inserted into request bodies.
- Remove the unconditional
