eval() call detected
High
- Category
- Dangerous Code Execution
- Content
API_URL = "http://localhost:8080" def process(data): result = eval(data["query"]) return result def get_user(x):- Confidence
- 99% confidence
- Finding
- The code evaluates attacker-controlled input via eval(data["query"]), which enables arbitrary Python code execution in the process context. In an API-style handler this is especially dangerous because a remote caller could execute system commands, read files, access secrets, or pivot to other vulnerable functions.
