T09 · Insecure Skill Coding Practices
Warning
- Location
- SKILL.md:25
- Finding
- Public Link Sharing Exposes Potentially Sensitive Wearable-Camera Photos<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 25-32 **Vulnerability Type**: Insecure access-control configuration **Risk Level**: Medium ### Vulnerable Code Snippet ```markdown ### 1. Configure Google Drive Folder Create a shared Google Drive folder for glasses photos: ```bash # User creates folder "Glasses-to-Social" in Google Drive # Share with "Anyone with link can view" # Copy the folder URL ``` ``` ### Technical Analysis The setup instructions explicitly direct users to configure the wearable-camera photo folder as accessible to anyone possessing its link. This removes identity-based access control and treats possession of the folder URL as sufficient authorization. Smart-glasses images may contain faces, physical locations, computer screens, documents, health information, or other sensitive first-person context. The exposure also applies to future images synchronized into the same folder. Although the URL is not necessarily indexed publicly, it may leak through configuration files, command output, logs, browser history, screenshots, chat messages, or accidental forwarding. No hidden exfiltration behavior was found in the scripts; this issue arises from the documented sharing configuration. ### Attack Path 1. A user follows the instructions and enables “Anyone with link can view.” 2. The folder URL is stored in `config.json` and passed to `gdown`. 3. The URL or folder identifier leaks through a readable configuration file, process output, logs, browser history, or a forwarded message. 4. An unauthenticated party opens the leaked URL. 5. The party reads or downloads the existing wearable-camera images and may continue accessing newly synchronized images while link sharing remains enabled. ### Impact Assessment An attacker gains unauthorized read access to the contents of the configured Google Drive folder. This does not provide operating-system privileges or permission to publish social-media posts, but it may expose a ...[truncated 173 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Do not instruct users to enable “Anyone with link can view.” - Keep the folder private and access it through authenticated Google OAuth or a dedicated service account. - Grant only read access to the specific folder required by the workflow. - Store OAuth tokens and configuration with restrictive filesystem permissions. - Avoid printing or recording the complete folder URL in logs. - Document image-retention, deletion, and privacy requirements. - Recommend a dedicated folder containing only photos intentionally submitted to this workflow. - Revoke existing public links and audit prior sharing activity when migrating an existing deployment. ]]>
