Tainted flow: 'GITEA_URL' from os.environ.get (line 49, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
} def api_get(path): return requests.get(f'{GITEA_URL}/api/v1{path}', headers=_headers(), timeout=15) def api_post(path, data): return requests.post(f'{GITEA_URL}/api/v1{path}', json=data, headers=_headers(), timeout=15)- Confidence
- 95% confidence
- Finding
- GITEA_URL is taken from environment or a local .env file and used directly as the destination for authenticated HTTP requests. Because the Authorization token is sent in headers, a malicious or compromised configuration can redirect requests to an attacker-controlled server and exfiltrate the Gitea API token, making this an SSRF-plus-credential-leak issue.
