subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
""" try: # 1) 传 payload 到 .82 scp = subprocess.run( ["scp", "-o", "StrictHostKeyChecking=no", "-o", "ConnectTimeout=8", text_path, "ubsea@192.168.3.82:/tmp/yiigle_tracker_report.txt"], capture_output=True, timeout=30)- Confidence
- 97% confidence
- Finding
- This subprocess call invokes SCP to copy a generated report to a hardcoded remote host, creating an external data transmission path from the local environment. Although arguments are passed as a list rather than through a shell, the behavior is still risky because it exports potentially sensitive query/report contents to external infrastructure and disables SSH host key verification, making man-in-the-middle interception easier.
