Tainted flow: 'status_file' from sys.stdin.read (line 131, user input) → open (file write)
Medium
- Category
- Data Flow
- Content
def write_status(status_file: str, status: Dict[str, Any]) -> bool: try: os.makedirs(os.path.dirname(status_file), exist_ok=True) with open(status_file, 'w', encoding='utf-8') as f: json.dump(status, f, ensure_ascii=False, indent=2) return True except IOError:- Confidence
- 95% confidence
- Finding
- with open(status_file, 'w', encoding='utf-8') as f:
