T09 · Insecure Skill Coding Practices
Error
- Location
- SKILL.md:16
- Finding
- Potential Clicky API Credential Embedded in Documentation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:16-18` **Vulnerability Type**: Hardcoded credential exposure **Risk Level**: High ### Vulnerable Code ```bash # In ~/.openclaw/.env or your shell profile CLICKY_ENVELOPEBUDGET_SITE_ID=101427673 CLICKY_ENVELOPEBUDGET_SITEKEY=c287a01cc00f70cb ``` ### Technical Analysis The setup documentation contains a realistic, site-specific Clicky site ID and site key instead of clearly marked placeholders. The audit could not establish whether the credential is currently valid, but distributing a real or previously valid API credential in documentation exposes it to every recipient of the Skill and potentially through repository history, package archives, caches, and logs. A Clicky site key functions as an authentication secret for analytics API requests. Possession of both the site ID and corresponding site key may allow a party to retrieve analytics associated with that Clicky site. ### Attack Path 1. An attacker obtains the Skill package or accesses its source history. 2. The attacker extracts the site ID and site key from `SKILL.md`. 3. The attacker submits the values to the Clicky statistics API. 4. If the credential remains valid, the attacker requests supported analytics data types. 5. The attacker collects available website traffic and visitor analytics without authorization. ### Impact Assessment If valid, the exposed credential could provide unauthorized read access to analytics associated with the referenced Clicky site. Exposed information may include traffic counts, popular pages, referral URLs, search terms, campaigns, geographic statistics, and visitor-related activity supported by the account and API. The exposure does not grant demonstrated local operating-system privileges or access to unrelated credentials. Its scope is limited by the permissions and sites associated with the disclosed Clicky credential. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Immediately verify whether the documented site key is or was genuine. 2. Revoke and rotate the key if it could have been valid. 3. Remove the credential from the current documentation and replace it with unmistakable placeholders: ```bash CLICKY_EXAMPLE_SITE_ID=YOUR_CLICKY_SITE_ID CLICKY_EXAMPLE_SITEKEY=YOUR_CLICKY_SITE_KEY ``` 4. Purge the credential from version-control history and previously published artifacts where feasible. 5. Review Clicky access logs for unauthorized requests using the exposed credential. 6. Store production credentials in a restricted secret store or environment file with owner-only permissions rather than committing them to documentation. 7. Add secret-scanning checks to the development and release process to prevent future credential publication. ]]>
