Tainted flow: 'MINIMAX_ENDPOINT' from os.getenv (line 16, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
} try: response = requests.post(MINIMAX_ENDPOINT, headers=headers, json=data, timeout=45) if response.status_code >= 400: print(f"❌ MiniMax API 錯誤 {response.status_code}: {response.text[:300]}") return None- Confidence
- 93% confidence
- Finding
- The request destination is taken directly from the MINIMAX_ENDPOINT environment variable, so whoever controls the runtime environment can redirect all bookmark contents and the API bearer token to an arbitrary server. Because the payload includes article content and the Authorization header carries a secret, this creates an SSRF-style exfiltration channel and credential leakage risk. In the context of a knowledge-base tool processing potentially sensitive bookmarks, this is more dangerous than a generic configurable endpoint.
