T09 · Insecure Skill Coding Practices
- Location
scripts/config.py:69- Finding
GitHub Tokens and Browser Sessions Are Persisted Without Explicit Access Controls
- Content
View full analysis
") sys.exit(1) result = token_login(sys.argv[2]) ``` ### Technical Analysis The Skill writes reusable GitHub Personal Access Tokens directly to `~/.github-assistant/github_token.txt` and saves browser cookies and localStorage to `github_auth.json`. Neither the directory nor the credential files are created with explicit restrictive permissions. The effective permissions therefore depend on the user's current `umask`. In an environment with permissive defaults, other local users or processes may be able to read the token or authenticated browser state. The documented login method also accepts the PAT as a command-line argument. Command-line arguments may be exposed through: - Shell history - Process inspection tools - Process accounting or monitoring agents - Terminal logging - CI/CD command logs This conflicts with the ...[truncated 1087 chars]- Remediation
View remediation
