eval() call detected
High
- Category
- Dangerous Code Execution
- Content
if not expr: return None try: return str(int(eval(expr))) except Exception: pass expr = expr.rstrip("+-*/")- Confidence
- 98% confidence
- Finding
- The code calls eval() on OCR-derived text from a remotely supplied captcha image. Although the regex restricts characters to digits and arithmetic operators, eval still executes Python expressions and can be abused for denial of service via expensive arithmetic or edge-case expression evaluation; using eval on untrusted input is unsafe by design.
