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
- injection — A bug where untrusted data reaches an interpreter and part of it is read as code instead of as a value.
- static application security testing — Finding security problems by reading a program's source code without running it.
Taught in
- Static Application Security Testing — Application Security & Threat Modeling for Engineers
- How To Stop Drowning In Findings — Application Security & Threat Modeling for Engineers