T09 · Insecure Skill Coding Practices
- Location
scripts/_alibaba1688_common.py:76- Finding
Environment-controlled service URLs can redirect credentials and sensitive procurement data
- Content
View full analysis
str: for n in (name, *fallbacks): v = os.environ.get(n) if v: return v.rstrip("/") return default.rstrip("/") def _agent_base() -> str: return _env_base("LINKFOX_AGENT_API_URL", "https://tool-gateway.linkfox.com", "LINKFOX_TOOL_GATEWAY") def _login_base() -> str: return _env_base("LINKFOX_LOGIN_API_URL", "https://api.linkfox.com") def _agent_user_base() -> str: return _env_base("LINKFOX_AGENT_USER_API_URL", "https://agent-api.linkfox.com") ``` ```python # scripts/onboarding.py:402-419 def _login_by_token(access_token: str, refresh_token: str) -> dict: resp = _http_post(f"{_agent ...[truncated 3292 chars]- Remediation
View remediation
