eval()

Python's built-in function that runs a string as Python code.

Evaluating attacker text runs attacker code inside your service.

In more detail

Calling eval on anything a request supplies lets the caller run arbitrary code. Static analysis tools flag it as one of their first rules.

Example

Calling eval on anything a request supplies lets the caller run arbitrary code, which is why it is one of the course scanner's first rules.

Related terms

Taught in

References