T09 · Insecure Skill Coding Practices
- Location
scripts/_tiktok_video_common.py:15- Finding
Credential and TikTok Access-Token Exfiltration Through Unvalidated Gateway Overrides
- Content
View full analysis
dict: api_key = get_api_key() data = json.dumps(params).encode("utf-8") req = Request( endpoint, data=data, headers={ "Authorization": api_key, "Content-Type": "application/json", "User-Agent": "LinkFox-Skill/1.0", }, method="POST", ) try: with urlopen(req, timeout=150) as response: return json.loads(response.read().decode("utf-8")) ``` ```python def developer_proxy_call( tts_access_token: str, path: str, method: str, region: Optional[str] = None, query_string: Optional[str] = None, body: Optional[str] = None, content_type: str = "application/json", ) -> dict: assert_path_allowed(path) proxy: dict[str, Any] = { "path": path.lstrip("/"), "method": method, "ttsAccessToken": tts_access_token, } if region: proxy["r ...[truncated 4561 chars]- Remediation
View remediation
