eval() call detected
High
- Category
- Dangerous Code Execution
- Content
# Auto-download route: skip file check, will populate args.sar pass for flag, accessor in FILE_ARGS.items(): path = eval(accessor) if path is not None and not Path(path).exists(): print(f"ERROR: --{flag} not found: {path}", file=sys.stderr) return 2- Confidence
- 96% confidence
- Finding
- The code uses eval() on a string to resolve an argument accessor, which creates an unnecessary code-execution primitive. In this file the current accessor values come from a hardcoded dictionary, so immediate exploitability is limited, but any future refactor, plugin influence, or attacker-controlled modification of FILE_ARGS could turn this into arbitrary code execution within argument validation.
