Tainted flow: 'api_key' from os.environ.get (line 101, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
def get_task(api_key: str, task_id: str): r = requests.get( f"{BASE_URL}/images/tasks/{task_id}", headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}, timeout=60,- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
