eval() call detected
High
- Category
- Dangerous Code Execution
- Content
# 安全求值 | Safe evaluation try: result = eval(expr, {"__builtins__": {}}, {}) return bool(result) except: return False- Confidence
- 99% confidence
- Finding
- The code evaluates rule conditions with Python's eval() after only naive variable substitution, which is not a safe sandbox. An attacker controlling rule.condition or parts of the substituted expression may achieve arbitrary code execution or at minimum bypass intended rule logic, especially because this engine explicitly supports dynamic rule loading.
