T09 · Insecure Skill Coding Practices
- Location
lib/README_TOKEN_MANAGER.md:114- Finding
Hardcoded Ezviz Application Credentials in Documentation
- Content
View full analysis
Vulnerability Details
File Location:
lib/README_TOKEN_MANAGER.md, lines 114–118
Vulnerability Type: Hardcoded credentials
Risk Level: HighVulnerable 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
- An attacker obtains the Skill package or accesses a repository copy or historical commit.
- The attacker extracts the hardcoded application key and secret from
lib/README_TOKEN_MANAGER.md. - The attacker sends the credentials to
https://openai.ys7.com/api/lapp/token/get. - If the credentials remain valid, Ezviz returns an access token.
- 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
View remediation
Remediation Suggestions
- Revoke and rotate the exposed application secret immediately.
- Review Ezviz access and API logs for unauthorized use of the exposed credentials.
- Replace all concrete credentials with obvious placeholders such as
YOUR_EZVIZ_APP_KEYandYOUR_EZVIZ_APP_SECRET. - Remove the credentials from repository history, archived packages, mirrors, build artifacts, and documentation caches where feasible.
- Add automated secret scanning to pre-commit hooks and CI pipelines.
- Use a dedicated Ezviz application with only the permissions required to produce preview links.
