Credential Access
High
- Category
- Privilege Escalation
- Content
@classmethod def from_env(cls, env_file: Optional[str] = None) -> "FeishuConfig": """从环境变量或 .env 文件加载配置""" if env_file and os.path.exists(env_file): with open(env_file) as f: for line in f:- Confidence
- 76% confidence
- Finding
- The method accepts an arbitrary `env_file` path and parses it into process environment variables without trust validation or safe parsing. In an agent context, this can expose a broader local-file access primitive and allow untrusted workflow input to influence credential loading or override environment configuration from attacker-chosen files.
