T09 · Insecure Skill Coding Practices
- Location
lib/token_manager.py:130- Finding
Disabling Token Caching Does Not Prevent Token Persistence
- Content
View full analysis
- Remediation
View remediation
8 else app_key } save_token_cache(all_cache) ``` 2. When caching is disabled, avoid creating the cache directory or reading any pre-existing cache. 3. Clearly distinguish between “do not read cache” and “do not persist token” if both behaviors must be supported. 4. Add automated tests confirming that `EZVIZ_TOKEN_CACHE=0` creates neither a cache directory nor a cache file. 5. Consider deleting an existing entry for the relevant account when the user explicitly disables persistence, subject to clear documentation and user consent. ]]>
