eval() call detected
High
- Category
- Dangerous Code Execution
- Content
Returns exit code (0 = ok, 2 = arg error).""" # File existence for flag, accessor in FILE_ARGS.items(): path = eval(accessor) # safe: only string concat if path is not None and not Path(path).exists(): print(f"ERROR: --{flag} not found: {path}", file=sys.stderr) return 2- Confidence
- 92% confidence
- Finding
- path = eval(accessor) # safe: only string concat
