T09 · Insecure Skill Coding Practices
- Location
SKILL.md:26- Finding
Mandatory Public Image Hosting Can Expose User Data
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 26-28
Vulnerability Type: Public exposure of user-provided images
Risk Level: MediumComplete Source Snippet
markdown ### 2. 图片分析 使用 `autoglm-image-recognition` 进行专业图片识别。图片须先上传获取公网 URL。English meaning: the skill requires the image to be uploaded to obtain a publicly accessible URL before using the image-recognition service.
Technical Analysis
The skill mandates public hosting of user-submitted photographs without specifying access controls, URL expiration, metadata removal, retention limits, deletion procedures, approved hosting providers, or informed consent.
Jewelry photographs can unintentionally contain sensitive information such as faces, reflections, receipts, addresses, location metadata, unique possessions, or details about valuable property. A public URL creates an unnecessary disclosure boundary and may permit access by hosting-provider personnel, anyone who obtains or guesses the URL, automated crawlers, logs, analytics systems, or downstream recognition services.
This is an insecure workflow configuration rather than embedded malicious behavior. No credential theft, local privilege escalation, or code execution was identified.
Attack Path
- A user submits a jewelry image for authentication.
- The agent follows the skill instruction and uploads the image to a publicly accessible hosting service.
- The hosting service retains the image or exposes it through a persistent URL.
- The URL is disclosed through logs, browser history, service analytics, referrer headers, sharing, weak URL entropy, or indexing.
- An unauthorized party retrieves the image and extracts personal, property, or location-related information.
Impact Assessment
The issue can compromise the confidentiality of submitted images and associated metadata. Exposure is limited to data uploaded through this workflow; the finding does not grant ...[truncated 224 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace public URLs with authenticated, private object storage or direct binary transfer to the image-recognition service.
- Use short-lived, single-purpose signed URLs with the minimum practical expiration period.
- Strip EXIF and other metadata before transmission.
- Obtain explicit user consent before sending images to any third party and identify the recipient and retention policy.
- Warn users to remove faces, receipts, addresses, identifying reflections, and unrelated background details.
- Disable public indexing, directory listing, and anonymous reuse of uploaded objects.
- Delete the uploaded image immediately after analysis and document failure-handling deletion procedures.
- Avoid placing full image URLs in persistent logs; redact access tokens and query parameters.
