Tainted flow: 'command' from os.getenv (line 53, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
"curl", "-s", "-u", f"{JOPLIN_USERNAME}:{password}", "-X", "PROPFIND", "--header", "Depth: infinity", url ] result = subprocess.run(command, capture_output=True, text=True, check=True) # Extract path part of the URL for the regex url_path = urlparse(url).path- Confidence
- 88% confidence
- Finding
- result = subprocess.run(command, capture_output=True, text=True, check=True)
