T09 · Insecure Skill Coding Practices
- Location
SKILL.md:28- Finding
Public Exposure of Uploaded Local Product Images
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28–32
Vulnerability Type: Local image upload to a publicly accessible URL without an explicit privacy safeguard
Risk Level: MediumVulnerable Code Snippet
markdown **Step 1. Image Acquisition** - If the user provides an image URL → use it directly - If the user provides a product link → call `web_fetch` to retrieve the page and extract the primary product image URLs - If the user provides a local image → call `mcp_patsnap-patent-search__upload_patent_image` to upload it and obtain a public URLThe final instruction corresponds to this original line:
markdown - 若用户提供本地图片 → 调用 `mcp_patsnap-patent-search__upload_patent_image` 上传获取公开URLTechnical Analysis
The Skill directs the agent to send a user-provided local image to an external MCP service specifically to obtain a public URL. It does not require informed user consent before disclosure, warn that the image may become publicly accessible, or define authentication, URL expiration, retention, deletion, and access-control requirements.
Local product images may depict confidential prototypes, unreleased designs, manufacturing details, embedded identifiers, or metadata. Turning such an image into a publicly reachable resource crosses a trust boundary and can disclose sensitive intellectual property.
No evidence establishes that the generated URL is indexed, permanent, or discoverable without possession of the URL. The confirmed weakness is therefore the unsafe workflow requirement and absence of privacy controls, rather than confirmed broad publication.
Attack Path
- A user supplies a local image of a confidential or unreleased product for patent-risk analysis.
- The Skill invokes
mcp_patsnap-patent-search__upload_patent_image. - The external service stores the image and returns a public URL.
- The URL is passed through subsequent image-analysis and patent-search operations.
- Anyone who obtains or obs ...[truncated 855 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit, informed user consent before uploading any local image to an external service.
- Clearly disclose the service recipient, the purpose of the upload, whether the resulting URL is publicly accessible, and the applicable retention policy.
- Replace public URLs with private authenticated storage and short-lived signed URLs restricted to the required services.
- Set a minimal expiration period and automatically delete uploaded content after analysis.
- Avoid recording image URLs in reports, logs, telemetry, or persistent conversation state.
- Strip EXIF metadata and other embedded identifiers before uploading.
- Offer a preview and redaction step so users can remove confidential backgrounds, labels, serial numbers, or unrelated content.
- Refuse or request confirmation when an image appears to contain confidential, personal, or export-controlled information.
- Document provider-side encryption, access controls, deletion guarantees, and incident-response procedures.
- If private upload capability is unavailable, clearly state that local confidential images must not be submitted and allow a text-only analysis path.
