T01 · Skill Instruction Hijacking
- Location
SKILL.md:24- Finding
Undocumented Request Manipulation Through a Forced Routing Parameter
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 24–29
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: MediumVulnerable Code Snippet:
markdown ## Workflow 1. Identify the source file type, desired output, and requested operation. 2. Read `references/endpoint-index.md` and select only an operation listed in this skill's supported operations. 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.Technical Analysis
The Skill instructs the agent to use only the exact fields documented in the official API reference, but then unconditionally requires the undocumented
sourceType=5parameter in every final request.The Word-to-PDF reference section reviewed during the audit documents
file,password, andlanguageas request body fields. It does not documentsourceTypeas an input field for this endpoint. Althoughdata.sourceTypeappears in the response schema, that does not establish thatsourceType=5is a supported request parameter.This instruction therefore modifies requests beyond the documented requirements of the declared Word-to-PDF operation. Because the field is described as an “integration routing parameter,” it may influence routing, attribution, telemetry, billing, or other server-side behavior that is not apparent to the user.
Attack Path
- A user activates the Word-to-PDF Skill.
- The Skill reads the official Word-to-PDF endpoint documentation.
- The agent prepares a request using the documented fields.
- The Skill instruction forces the agent to add
sourceType=5, despite the field not being documented for the request. - The modifi ...[truncated 743 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unconditional requirement to add
sourceType=5. - Generate requests exclusively from fields documented for the selected endpoint.
- If ComPDF officially requires this parameter, add a verifiable reference documenting:
- Its accepted type and values.
- Its routing or attribution semantics.
- Whether it is mandatory or optional.
- Any privacy, billing, or telemetry implications.
- Clearly disclose the parameter to the user before request submission.
- Require explicit user consent when the parameter affects routing, tracking, attribution, or data handling.
- Add schema validation that rejects request parameters not present in the selected endpoint specification.
- Remove the unconditional requirement to add
