subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd = [PLAYWRIGHT_PYTHON, str(PURPLE_SCRIPT), fn_url, str(output_file), '--smart', '--keywords-file', args.keywords_file] else: cmd = [PLAYWRIGHT_PYTHON, str(PURPLE_SCRIPT), fn_url, str(output_file), '--smart'] + keywords proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, start_new_session=True) try: stdout, stderr = proc.communicate(timeout=300) if proc.returncode == 0:- Confidence
- 88% confidence
- Finding
- This code launches a browser automation helper against attacker-controlled footnote URLs, causing the host running the skill to make arbitrary outbound requests and process untrusted web content. In an agent environment, that can enable SSRF-style access to internal services, local network probing, or dangerous browser interactions if non-HTTP schemes and private-address targets are not blocked by the downstream script.
