eval() call detected
High
- Category
- Dangerous Code Execution
- Content
def get_task_from_redis(self): tasks = self._redisdb.zget(self._task_table, count=self._task_limit) tasks = [eval(task) for task in tasks] return tasks def get_todo_task_from_mysql(self):- Confidence
- 99% confidence
- Finding
- The code deserializes Redis task entries with Python eval(), which executes arbitrary Python expressions rather than safely parsing data. If an attacker can influence the Redis task payload or seed table contents, they can achieve arbitrary code execution in the spider process, making this a genuine and severe vulnerability.
