T09 · Insecure Skill Coding Practices
- Location
scripts/send_line.py:7- Finding
Unnecessary Secret-File Discovery and Partial Credential Disclosure
- Content
View full analysis
Environment Variable > Config File (Flat or Nested) token = (channel_access_token or os.environ.get("LINE_CHANNEL_ACCESS_TOKEN") or find_key(config, "LINE_CHANNEL_ACCESS_TOKEN") or find_key(config, "line_token") or find_key(config, "channelAccessToken")) to_user = (user_id or os.environ.get("LINE_USER_ID") or find_key(config, "LINE_USER_ID") or find_key(config, "line_user_id") or find_key(config, "userId")) ``` ```python print(f"Credentials Found:") print(f" - Token: {token[:5]}...{token[-5:] if len(token)>10 else ''}") print(f" - Target User: {to_user}") ``` ### Technical An ...[truncated 2476 chars]- Remediation
View remediation
