Credential Access
- Category
- Privilege Escalation
- Confidence
- 89% confidence
- Finding
The code directly accesses highly privileged financial API credentials from environment variables and immediately exchanges them for an access token. In a documentation skill, showing credential access without accompanying restrictions encourages patterns that may expose secrets through debugging, logging, insecure runtime environments, or over-broad agent permissions.
- Content
md import requests, json, base64, os def get_access_token(): """Exchange refresh token for access token.""" credentials = base64.b64encode( f"{os.environ['QBO_CLIENT_ID']}:{os.environ['QBO_CLIENT_SECRET']}".encode() ).decode()
