T09 · Insecure Skill Coding Practices
Error
- Location
- lib/README_TOKEN_MANAGER.md:114
- Finding
- Hardcoded Ezviz Application Credentials in Documentation## Vulnerability Details **File Location**: `lib/README_TOKEN_MANAGER.md`, lines 114–118 **Vulnerability Type**: Hardcoded credentials **Risk Level**: High ### Vulnerable Code ```bash # 2. First retrieval from the API python3 lib/token_manager.py get --app-key "26810f3acd794862b608b6cfbc32a6b8" --app-secret "3155063e93f09f377eaf5ba9f321f8c2" # Output: From Cache: False # 3. Retrieve again from the cache python3 lib/token_manager.py get --app-key "26810f3acd794862b608b6cfbc32a6b8" --app-secret "3155063e93f09f377eaf5ba9f321f8c2" ``` ### Technical Analysis The documentation contains a concrete Ezviz application key and application secret instead of unmistakable placeholder values. Anyone able to read the repository, a distributed Skill package, a mirror, or its version history can recover these credentials. Static analysis cannot determine whether the credentials are still active or what permissions they possess. Nevertheless, application secrets committed to a repository must be considered compromised. The secret can be submitted to the public Ezviz token endpoint together with the corresponding application key to request a bearer access token. ### Attack Path 1. An attacker obtains the Skill package or accesses a repository copy or historical commit. 2. The attacker extracts the hardcoded application key and secret from `lib/README_TOKEN_MANAGER.md`. 3. The attacker sends the credentials to `https://openai.ys7.com/api/lapp/token/get`. 4. If the credentials remain valid, Ezviz returns an access token. 5. The attacker uses that token with Ezviz APIs or preview facilities permitted by the application. ### Impact Assessment Successful exploitation can grant access to the Ezviz resources and operations authorized for the exposed application. Depending on the server-side permissions assigned to it, this could include viewing camera streams, playback access, device information, or other Ezviz API operations. The avai ...[truncated 106 chars]
- Remediation
- ## Remediation Suggestions 1. Revoke and rotate the exposed application secret immediately. 2. Review Ezviz access and API logs for unauthorized use of the exposed credentials. 3. Replace all concrete credentials with obvious placeholders such as `YOUR_EZVIZ_APP_KEY` and `YOUR_EZVIZ_APP_SECRET`. 4. Remove the credentials from repository history, archived packages, mirrors, build artifacts, and documentation caches where feasible. 5. Add automated secret scanning to pre-commit hooks and CI pipelines. 6. Use a dedicated Ezviz application with only the permissions required to produce preview links.
