Tainted flow: 'req' from os.environ.get (line 1369, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = f"https://api.unpaywall.org/v2/{urllib.parse.quote(doi, safe='')}?email={CROSSREF_EMAIL}" req = urllib.request.Request(url, headers={"Accept": "application/json"}) try: with urllib.request.urlopen(req, timeout=15) as resp: data = json.loads(resp.read().decode("utf-8")) oa = data.get("best_oa_location") or {} pdf_url = oa.get("url_for_pdf")- Confidence
- 88% confidence
- Finding
- with urllib.request.urlopen(req, timeout=15) as resp:
