Tainted flow: 'url' from os.environ.get (line 83, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python """Fetch paper metadata from PubMed""" url = f"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id={pmid}&retmode=xml" with urllib.request.urlopen(url, timeout=30) as response: content = response.read().decode('utf-8') title_match = re.search(r'<ArticleTitle>([^<]+)</ArticleTitle>', content)
